-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p39: disable empty logging tests #344
Conversation
@stdweird this is not urgent at all, but at some point in the future I would like your opinion on this. |
@@ -532,8 +532,10 @@ def test_zzz_fancylogger_as_rootlogger_logging(self): | |||
msg = 'this is my string' | |||
logging.debug(msg) | |||
|
|||
# fails on python 3.11 | |||
self.assertEqual(stringfile.getvalue(), '', | |||
if sys.version_info < (3,7): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implement the else
block instead of just skipping it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@stdweird remark addresses |
@stdweird fixed |
It seems that around python 3.7 log stream handling was changed. (can't find the actual change in the changelog)
I believe this is a good thing as now "logging with logging" no longer disappears when using fancylogger, which used to happen.
We used to test specifically for this behaviour. How big the behaviour change is, I can't say. So I don't know if we should rework fancylogger or just disable the test. As I would like to get rid of fancylogger I would propose to just disable the test, as this "new" behaviour might make migrating away from facylogger easier.
but those are just my 50 cents.