diff options
author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-02 15:42:47 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2011-07-02 15:42:47 (GMT) |
commit | 5bdae3bb7c7ab9e85453698972fa5fa926f012f3 (patch) | |
tree | ed140d49cc67ee21d563cccb2b2f47fdebd8763e /Lib/importlib | |
parent | a4a04069fd93395369b6061ed07f471e53f1c7a1 (diff) | |
download | cpython-5bdae3bb7c7ab9e85453698972fa5fa926f012f3.zip cpython-5bdae3bb7c7ab9e85453698972fa5fa926f012f3.tar.gz cpython-5bdae3bb7c7ab9e85453698972fa5fa926f012f3.tar.bz2 |
Closes #12291: Fixed bug which was found when doing multiple loads from one stream.
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): |