commit | 8ddab27182d7d00f32f423955d2344b8ba40b9d7 | [log] [tgz] |
---|---|---|
author | Thomas Wouters <thomas@python.org> | Tue Apr 04 16:17:02 2006 +0000 |
committer | Thomas Wouters <thomas@python.org> | Tue Apr 04 16:17:02 2006 +0000 |
tree | 3ab068255de9c67b7fb88afd04a36ff1aabb8848 | |
parent | 06853fc15055686ec02fd2671fd37cda0f69209b [diff] |
Fix __import__("") to raise ValueError rather than return None.
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py index fa36095..27f659d 100644 --- a/Lib/test/test_builtin.py +++ b/Lib/test/test_builtin.py
@@ -108,6 +108,7 @@ __import__('string') self.assertRaises(ImportError, __import__, 'spamspam') self.assertRaises(TypeError, __import__, 1, 2, 3, 4) + self.assertRaises(ValueError, __import__, '') def test_abs(self): # int