Skip to content

Commit 89d297f

Browse files
ferdnycxsuchy
authored andcommitted
Remove the traceLog decorator from pretty_getcwd
`pretty_getcwd()` is called during module import (to set `ORIGINAL_CWD`), and using a traced function creates unwanted side effects. Fixes: #1583
1 parent 4258bcc commit 89d297f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

mock/py/mockbuild/util.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,6 @@ def setup_host_resolv(config_opts):
884884
config_opts['nspawn_args'] += ['--bind={0}:/etc/resolv.conf'.format(resolv_path)]
885885

886886

887-
@traceLog()
888887
def pretty_getcwd():
889888
try:
890889
return os.getcwd()

0 commit comments

Comments
 (0)