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 0b701eb commit 62da60eCopy full SHA for 62da60e
testing/code/test_excinfo.py
@@ -964,8 +964,8 @@ def raiseos():
964
upframe = sys._getframe().f_back
965
assert upframe is not None
966
if upframe.f_code.co_name == "_makepath":
967
- # Only raise with expected calls, but not via e.g. inspect for
968
- # py38-windows.
+ # Only raise with expected calls, and not accidentally via 'inspect'
+ # See 79ae86cc3f76d69460e1c7beca4ce95e68ab80a6
969
raised += 1
970
raise OSError(2, "custom_oserror")
971
return orig_path_cwd()
0 commit comments