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 1513ea3 commit f59253bCopy full SHA for f59253b
Lib/test/test_shutil.py
@@ -3371,11 +3371,10 @@ def test_exception_on_enodata_call(self):
3371
# traditional POSIX while preserving the position of where we
3372
# got to in writing
3373
def syscall(*args, **kwargs):
3374
- if not flag:
3375
- flag.append(None)
3376
- return orig_syscall(*args, **kwargs)
3377
- else:
+ if flag:
3378
raise OSError(errno.ENODATA, "yo")
+ flag.append(None)
+ return eval(self.PATCHPOINT)(*args, **kwargs)
3379
3380
flag = []
3381
orig_syscall = eval(self.PATCHPOINT)
0 commit comments