summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-07-02 16:16:02 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-07-02 16:16:02 (GMT)
commit65897a386e7980a736e3492eecc9bdbb706bf4f9 (patch)
tree4a2c1ed7749041d553164fbcd9e8349d9e57af06 /Lib/importlib
parent2ee61884fe350bc1efbd20bffb305d6eac5a1937 (diff)
parent5bdae3bb7c7ab9e85453698972fa5fa926f012f3 (diff)
downloadcpython-65897a386e7980a736e3492eecc9bdbb706bf4f9.zip
cpython-65897a386e7980a736e3492eecc9bdbb706bf4f9.tar.gz
cpython-65897a386e7980a736e3492eecc9bdbb706bf4f9.tar.bz2
Closes #12291 for 3.3 - merged fix from 3.2.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/test/source/test_file_loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/test/source/test_file_loader.py b/Lib/importlib/test/source/test_file_loader.py
index 0ffe78d..2028092 100644
--- a/Lib/importlib/test/source/test_file_loader.py
+++ b/Lib/importlib/test/source/test_file_loader.py
@@ -214,7 +214,7 @@ class BadBytecodeTest(unittest.TestCase):
lambda bc: bc[:8] + b'<test>',
del_source=del_source)
file_path = mapping['_temp'] if not del_source else bytecode_path
- with self.assertRaises(ValueError):
+ with self.assertRaises(EOFError):
self.import_(file_path, '_temp')
def _test_bad_magic(self, test, *, del_source=False):