summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/import_
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-02-23 23:29:12 (GMT)
committerBrett Cannon <brett@python.org>2012-02-23 23:29:12 (GMT)
commitf500778f652f6beb368f10c0fd312c3034dfce5e (patch)
tree4d1f19d90085c9d1494cc6eb9d973324913734f6 /Lib/importlib/test/import_
parent068915cc8b75720192be0e5834e7e25993fae5ff (diff)
downloadcpython-f500778f652f6beb368f10c0fd312c3034dfce5e.zip
cpython-f500778f652f6beb368f10c0fd312c3034dfce5e.tar.gz
cpython-f500778f652f6beb368f10c0fd312c3034dfce5e.tar.bz2
Improper type for __package__ should raise TypeError, not ValueError.
Diffstat (limited to 'Lib/importlib/test/import_')
-rw-r--r--Lib/importlib/test/import_/test___package__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/import_/test___package__.py b/Lib/importlib/test/import_/test___package__.py
index 5056ae5..783cde1 100644
--- a/Lib/importlib/test/import_/test___package__.py
+++ b/Lib/importlib/test/import_/test___package__.py
@@ -67,7 +67,7 @@ class Using__package__(unittest.TestCase):
def test_bunk__package__(self):
globals = {'__package__': 42}
- with self.assertRaises(ValueError):
+ with self.assertRaises(TypeError):
import_util.import_('', globals, {}, ['relimport'], 1)