Skip to content

Commit 1ac9232

Browse files
committed
@writes_bytecode_files to skip
python/cpython#95972
1 parent 240c57b commit 1ac9232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_importlib/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def writes_bytecode_files(fxn):
307307
"""Decorator to protect sys.dont_write_bytecode from mutation and to skip
308308
tests that require it to be set to False."""
309309
if sys.dont_write_bytecode:
310-
return lambda *args, **kwargs: None
310+
return unittest.skip(fxn)
311311
@functools.wraps(fxn)
312312
def wrapper(*args, **kwargs):
313313
original = sys.dont_write_bytecode

0 commit comments

Comments
 (0)