gh-122096: Remove accidentally left debugging prints (#122097)

This commit is contained in:
Kirill Podoprigora 2024-07-21 22:48:39 +03:00 committed by GitHub
parent a3f7db905c
commit 5901d92739
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -904,7 +904,6 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
errors = [] errors = []
tmp.rmtree(on_error=errors.append) tmp.rmtree(on_error=errors.append)
# Test whether onerror has actually been called. # Test whether onerror has actually been called.
print(errors)
self.assertEqual(len(errors), 3) self.assertEqual(len(errors), 3)
finally: finally:
tmp.chmod(old_dir_mode) tmp.chmod(old_dir_mode)
@ -1006,7 +1005,6 @@ class PathTest(test_pathlib_abc.DummyPathTest, PurePathTest):
with swap_attr(os, 'close', close) as orig_close: with swap_attr(os, 'close', close) as orig_close:
dir1.rmtree(on_error=errors.append) dir1.rmtree(on_error=errors.append)
print(errors)
self.assertEqual(len(errors), 2) self.assertEqual(len(errors), 2)
self.assertEqual(errors[0].filename, str(dir2)) self.assertEqual(errors[0].filename, str(dir2))
self.assertEqual(errors[1].filename, str(dir1)) self.assertEqual(errors[1].filename, str(dir1))