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 4e2bd58 commit 07b5c46Copy full SHA for 07b5c46
Lib/test/test_importlib/util.py
@@ -298,7 +298,7 @@ def writes_bytecode_files(fxn):
298
"""Decorator to protect sys.dont_write_bytecode from mutation and to skip
299
tests that require it to be set to False."""
300
if sys.dont_write_bytecode:
301
- return lambda *args, **kwargs: None
+ return unittest.skip("relies on writing bytecode")(fxn)
302
@functools.wraps(fxn)
303
def wrapper(*args, **kwargs):
304
original = sys.dont_write_bytecode
0 commit comments