diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-16 22:43:07 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-16 22:43:07 (GMT) |
commit | f7c5ae225725893fe1cc0bb2b97d89182eac2c2e (patch) | |
tree | c74c198e5ca630a58850e0f5ddc6108e7ab252d7 /Lib/test/test_genericpath.py | |
parent | 345379a7f8ae2d8f5151eacc0eaa9f3902e76c8e (diff) | |
download | cpython-f7c5ae225725893fe1cc0bb2b97d89182eac2c2e.zip cpython-f7c5ae225725893fe1cc0bb2b97d89182eac2c2e.tar.gz cpython-f7c5ae225725893fe1cc0bb2b97d89182eac2c2e.tar.bz2 |
Issue #13374: Deprecate os.getcwdb() on Windows
Diffstat (limited to 'Lib/test/test_genericpath.py')
-rw-r--r-- | Lib/test/test_genericpath.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index b618d45..ebb8396 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -264,8 +264,10 @@ class CommonTest(GenericTest): self.assertIn(b"foo", self.pathmodule.abspath(b"foo")) # Abspath returns bytes when the arg is bytes - for path in (b'', b'foo', b'f\xf2\xf2', b'/foo', b'C:\\'): - self.assertIsInstance(self.pathmodule.abspath(path), bytes) + with warnings.catch_warnings(): + warnings.simplefilter("ignore", DeprecationWarning) + for path in (b'', b'foo', b'f\xf2\xf2', b'/foo', b'C:\\'): + self.assertIsInstance(self.pathmodule.abspath(path), bytes) def test_realpath(self): self.assertIn("foo", self.pathmodule.realpath("foo")) |