From: Brett Cannon Date: Sat, 12 May 2012 21:40:28 +0000 (-0400) Subject: Remove a now worthless test. X-Git-Tag: v3.3.0a4~194^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acc0c181a85143e0113f1ec9cb838e86cd8df50f;p=python Remove a now worthless test. --- diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index 2eadd4df07..4024be7e6f 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -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)