diff -r 379372612f6d Lib/test/test_nturl2path.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lib/test/test_nturl2path.py Thu Oct 24 19:32:37 2013 -0400 @@ -0,0 +1,17 @@ +import nturl2path +import unittest + +class NTUrl2PathTestCase(unittest.TestCase): + def test_url2pathname(self): + self.assertEqual("\\\\", nturl2path.url2pathname("////")) + self.assertEqual("A:\\foo", nturl2path.url2pathname("a|/foo")) + self.assertRaises(OSError, nturl2path.url2pathname, "||") + self.assertEqual("A:\\", nturl2path.url2pathname("a|/")) + + def test_pathname2url(self): + self.assertEqual("////", nturl2path.pathname2url("\\\\")) + self.assertEqual("///A:/foo", nturl2path.pathname2url("a:\\foo")) + self.assertRaises(OSError, nturl2path.pathname2url, "::") + +if __name__ == "__main__": + unittest.main() diff -r 379372612f6d Lib/test/test_sundry.py --- a/Lib/test/test_sundry.py Fri Oct 25 00:08:13 2013 +0300 +++ b/Lib/test/test_sundry.py Thu Oct 24 19:32:37 2013 -0400 @@ -6,8 +6,7 @@ class TestUntestedModules(unittest.TestCase): def test_untested_modules_can_be_imported(self): - untested = ('bdb', 'encodings', 'formatter', 'imghdr', - 'nturl2path', 'tabnanny') + untested = ('bdb', 'encodings', 'formatter', 'imghdr') with support.check_warnings(quiet=True): for name in untested: try: