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 2a4028a commit ee6c62dCopy full SHA for ee6c62d
Lib/test/test_importlib/util.py
@@ -307,7 +307,7 @@ def writes_bytecode_files(fxn):
307
"""Decorator to protect sys.dont_write_bytecode from mutation and to skip
308
tests that require it to be set to False."""
309
if sys.dont_write_bytecode:
310
- return lambda *args, **kwargs: None
+ return unittest.skip(fxn)
311
@functools.wraps(fxn)
312
def wrapper(*args, **kwargs):
313
original = sys.dont_write_bytecode
0 commit comments