Repository navigation
Fixed CustomLogger super call - #2849
Merged
Merged
Conversation
Member
|
@mattp- please rebase, we fixed the unrelated CI failures. |
Comment on lines
+193
to
+194
| except RecursionError as exc: | ||
| raise pytest.fail("CustomLogger caused recursion error: {0}".format(exc)) |
Contributor
There was a problem hiding this comment.
Why are you catching this, and not just letting the error pass out to pytest automatically?
Contributor
Author
There was a problem hiding this comment.
not sure, I guess that also works :) ill change
mattp-
force-pushed
the
master
branch
3 times, most recently
from
September 30, 2020 18:15
87c529e to
c685343
Compare
Contributor
|
You accidentally made an extra test and it passes. Somewhere in the test code you'll see definitions for how many tests there are supposed to be. You'll need to bump that up to 433 to account for your additional test. |
In cases where another logger uses getLoggerClass to subclass and then setLoggerClass's itself, molecules logger passes the wrong value to super() causing a recursionError.
Contributor
Author
|
@greg-hellings should be good now I believe, pending that last build-containers task. thanks! |
ssbarnea
approved these changes
Oct 1, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In cases where another logger uses getLoggerClass to subclass and then
setLoggerClass's itself, molecules logger passes the wrong value to
super() causing a recursionError.
Please include details of what it is, how to use it, how it's been tested
PR Type