We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d391f4 commit cffeca1Copy full SHA for cffeca1
jsonschema/tests/_suite.py
@@ -221,7 +221,7 @@ def validate_ignoring_errors(self, **kwargs):
221
222
def _someone_save_us_the_module_of_the_caller():
223
"""
224
- The module object of the 2nd stack frame up from here.
+ The FQON of the module 2nd stack frames up from here.
225
226
This is intended to allow us to dynamicallly return test case classes that
227
are indistinguishable from being defined in the module that wants them.
@@ -232,5 +232,4 @@ def _someone_save_us_the_module_of_the_caller():
232
Save us all, this is all so so so so so terrible.
233
234
235
- two_up = sys._getframe(2)
236
- return two_up.f_globals["__name__"]
+ return sys._getframe(2).f_globals["__name__"]
0 commit comments