summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-07-20 00:14:29 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-07-20 00:14:29 (GMT)
commit3c2738488ab893017c26e529ee2ebedd41bbb263 (patch)
treea14bf9cf73241e7c883ef5a7fb953185cb91a6ca /Misc
parent0a49c58fb0534af4c7754d17d1a1e959fc196878 (diff)
downloadcpython-3c2738488ab893017c26e529ee2ebedd41bbb263.zip
cpython-3c2738488ab893017c26e529ee2ebedd41bbb263.tar.gz
cpython-3c2738488ab893017c26e529ee2ebedd41bbb263.tar.bz2
Some tests in importlib.test.source.test_abc_loader were testing what happens
when a loader is given missing or bad code object bytecode. Unfortunately an exception related to source paths was masking what the proper exception to test should be. Making the test explicitly set the environment fixed the test. The code being test was not affected.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index cbe5607..4b94ede 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -88,6 +88,10 @@ Build
Tests
-----
+- Fixed tests in importlib.test.source.test_abc_loader that were masking
+ the proper exceptions that should be raised for missing or improper code
+ object bytecode.
+
- Removed importlib's custom test discovery code and switched to
unittest.TestLoader.discover().