diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-21 17:15:40 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-05-21 17:15:40 (GMT) |
commit | 041dd8eef105f981693f7084b270481816dd9a7a (patch) | |
tree | 9fdcf84d365a2c2e6bcf318fab0649e8655b4b09 /Lib/test/test_importlib | |
parent | ff54223606d899c57912dc9f1c5d0d0f331f96b8 (diff) | |
download | cpython-041dd8eef105f981693f7084b270481816dd9a7a.zip cpython-041dd8eef105f981693f7084b270481816dd9a7a.tar.gz cpython-041dd8eef105f981693f7084b270481816dd9a7a.tar.bz2 |
Issue #15836: assertRaises(), assertRaisesRegex(), assertWarns() and
assertWarnsRegex() assertments now check the type of the first argument
to prevent possible user error. Based on patch by Daniel Wagner-Hall.
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r-- | Lib/test/test_importlib/builtin/test_loader.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_importlib/builtin/test_loader.py b/Lib/test/test_importlib/builtin/test_loader.py index 1684ab6..b1349ec 100644 --- a/Lib/test/test_importlib/builtin/test_loader.py +++ b/Lib/test/test_importlib/builtin/test_loader.py @@ -97,7 +97,6 @@ class InspectLoaderTests: method = getattr(self.machinery.BuiltinImporter, meth_name) with self.assertRaises(ImportError) as cm: method(util.BUILTINS.bad_name) - self.assertRaises(util.BUILTINS.bad_name) (Frozen_InspectLoaderTests, |