Skip to content
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

Merged
merged 9 commits into from
Nov 7, 2023
Merged

p39: disable empty logging tests #344

merged 9 commits into from
Nov 7, 2023

Conversation

wdpypere
Copy link
Contributor

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.

@wdpypere
Copy link
Contributor Author

@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):
Copy link
Member

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@wdpypere
Copy link
Contributor Author

wdpypere commented Nov 6, 2023

@stdweird remark addresses

test/fancylogger.py Outdated Show resolved Hide resolved
@wdpypere
Copy link
Contributor Author

wdpypere commented Nov 7, 2023

@stdweird fixed

@stdweird stdweird merged commit 44b86e1 into hpcugent:master Nov 7, 2023
3 checks passed
@wdpypere wdpypere deleted the py39 branch November 7, 2023 10:51
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.

2 participants