Thanks to visit codestin.com Credit goes to github.com
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.
2 parents 706379a + ada6db7 commit 786e922Copy full SHA for 786e922
1 file changed
Lib/test/test_os.py
@@ -1020,6 +1020,17 @@ def tearDown(self):
1020
1021
class BytesWalkTests(WalkTests):
1022
"""Tests for os.walk() with bytes."""
1023
+ def setUp(self):
1024
+ super().setUp()
1025
+ self.stack = contextlib.ExitStack()
1026
+ if os.name == 'nt':
1027
+ self.stack.enter_context(warnings.catch_warnings())
1028
+ warnings.simplefilter("ignore", DeprecationWarning)
1029
+
1030
+ def tearDown(self):
1031
+ self.stack.close()
1032
+ super().tearDown()
1033
1034
def walk(self, top, **kwargs):
1035
if 'follow_symlinks' in kwargs:
1036
kwargs['followlinks'] = kwargs.pop('follow_symlinks')
0 commit comments