diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-15 21:27:43 (GMT) |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-15 21:27:43 (GMT) |
| commit | 8ab440e4771c4118e874cbb05b5f8f09a4408f49 (patch) | |
| tree | 889e37790b5d834a14a3b58cfb8f4c3e6fbc88eb /Lib/test/test_posixpath.py | |
| parent | 8ad982cccf439419937bf2acf111f7ee197c4181 (diff) | |
| parent | 1ab6c2d2c2b6c78e492491542007edfb880889f0 (diff) | |
| download | cpython-8ab440e4771c4118e874cbb05b5f8f09a4408f49.zip cpython-8ab440e4771c4118e874cbb05b5f8f09a4408f49.tar.gz cpython-8ab440e4771c4118e874cbb05b5f8f09a4408f49.tar.bz2 | |
Merge
Diffstat (limited to 'Lib/test/test_posixpath.py')
| -rw-r--r-- | Lib/test/test_posixpath.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index bb4559c..709ef04 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -1,10 +1,10 @@ -import unittest -from test import support, test_genericpath - -import posixpath import os +import posixpath import sys +import unittest +import warnings from posixpath import realpath, abspath, dirname, basename +from test import support, test_genericpath try: import posix @@ -231,7 +231,9 @@ class PosixPathTest(unittest.TestCase): def test_ismount(self): self.assertIs(posixpath.ismount("/"), True) - self.assertIs(posixpath.ismount(b"/"), True) + with warnings.catch_warnings(): + warnings.simplefilter("ignore", DeprecationWarning) + self.assertIs(posixpath.ismount(b"/"), True) def test_ismount_non_existent(self): # Non-existent mountpoint. |
