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

Unified Diff: Lib/test/test_with.py

Issue 16510: Using appropriate checks in tests
Patch Set: Created 5 years, 6 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 | « Lib/test/test_winreg.py ('k') | Lib/test/test_xdrlib.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_with.py Fri Feb 07 17:53:13 2014 +0100
+++ b/Lib/test/test_with.py Fri Feb 07 23:40:05 2014 +0200
@@ -223,7 +223,7 @@
self.assertEqual(mock_manager.exit_args[0], exc_type)
# Test the __exit__ arguments. Issue #7853
self.assertIsInstance(mock_manager.exit_args[1], exc_type)
- self.assertIsNot(mock_manager.exit_args[2], None)
+ self.assertIsNotNone(mock_manager.exit_args[2])
def assertAfterWithGeneratorInvariantsWithError(self, mock_generator):
self.assertTrue(mock_generator.yielded)
« no previous file with comments | « Lib/test/test_winreg.py ('k') | Lib/test/test_xdrlib.py » ('j') | no next file with comments »

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