Skip to content

Fix: Force logging.basicConfig to logging to work in pytest#1126

Merged
glensc merged 1 commit into
Taxel:mainfrom
glensc:test-logging-fix
Sep 11, 2023
Merged

Fix: Force logging.basicConfig to logging to work in pytest#1126
glensc merged 1 commit into
Taxel:mainfrom
glensc:test-logging-fix

Conversation

@glensc

@glensc glensc commented Oct 23, 2022

Copy link
Copy Markdown
Collaborator

Extracted from #716

@glensc glensc self-assigned this Oct 23, 2022
@glensc

glensc commented Oct 23, 2022

Copy link
Copy Markdown
Collaborator Author

Hmm, the force seems to be missing in python 3.7

  File "/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/logging/__init__.py", line 1919, in basicConfig
    raise ValueError('Unrecognised argument(s): %s' % keys)

confirmed:

Changed in version 3.8: The force argument was added.

@glensc
glensc marked this pull request as draft October 23, 2022 20:11
@glensc
glensc marked this pull request as ready for review September 11, 2023 20:30
@glensc
glensc merged commit 95904e0 into Taxel:main Sep 11, 2023
@glensc
glensc deleted the test-logging-fix branch September 11, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant