diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-02 16:16:02 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-02 16:16:02 (GMT) |
commit | 65897a386e7980a736e3492eecc9bdbb706bf4f9 (patch) | |
tree | 4a2c1ed7749041d553164fbcd9e8349d9e57af06 /Lib/importlib | |
parent | 2ee61884fe350bc1efbd20bffb305d6eac5a1937 (diff) | |
parent | 5bdae3bb7c7ab9e85453698972fa5fa926f012f3 (diff) | |
download | cpython-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.py | 2 |
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): |