]> granicus.if.org Git - python/commitdiff
Remove a now worthless test.
authorBrett Cannon <brett@python.org>
Sat, 12 May 2012 21:40:28 +0000 (17:40 -0400)
committerBrett Cannon <brett@python.org>
Sat, 12 May 2012 21:40:28 +0000 (17:40 -0400)
Lib/test/test_unicode.py

index 2eadd4df0749f1f70d8d5d0de7de4a1ef9edfbcf..4024be7e6f41b33091d1f4a16feb0bacd4dfbe0d 100644 (file)
@@ -1422,14 +1422,6 @@ class UnicodeTest(string_tests.CommonTest,
         self.assertRaises(TypeError, str, b"hello", "test.unicode2")
         self.assertRaises(TypeError, "hello".encode, "test.unicode1")
         self.assertRaises(TypeError, "hello".encode, "test.unicode2")
-        # executes PyUnicode_Encode()
-        import imp
-        self.assertRaises(
-            ImportError,
-            imp.find_module,
-            "non-existing module",
-            ["non-existing dir"]
-        )
 
         # Error handling (wrong arguments)
         self.assertRaises(TypeError, "hello".encode, 42, 42, 42)