Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(22158)

Unified Diff: Lib/test/test_importlib/builtin/test_loader.py

Issue 15836: unittest assertRaises should verify excClass is actually a BaseException class
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Lib/unittest/case.py » ('j') | Lib/unittest/case.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_importlib/builtin/test_loader.py Tue May 19 11:00:07 2015 +0300
+++ b/Lib/test/test_importlib/builtin/test_loader.py Tue May 19 12:07:06 2015 +0300
@@ -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,
« no previous file with comments | « no previous file | Lib/unittest/case.py » ('j') | Lib/unittest/case.py » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+