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

Unified Diff: Lib/test/test_augassign.py

Issue 16510: Using appropriate checks in tests
Patch Set: Created 5 years, 10 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_asyncore.py ('k') | Lib/test/test_binop.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_augassign.py Fri Feb 07 17:53:13 2014 +0100
+++ b/Lib/test/test_augassign.py Fri Feb 07 23:40:05 2014 +0200
@@ -63,7 +63,7 @@
y[1:2] += [1]
self.assertEqual(x, [1, 2, 1, 2, 3])
- self.assertTrue(x is y)
+ self.assertIs(x, y)
def testCustomMethods1(self):
@@ -89,14 +89,14 @@
x += 10
self.assertIsInstance(x, aug_test)
- self.assertTrue(y is not x)
+ self.assertIsNot(y, x)
self.assertEqual(x.val, 11)
x = aug_test2(2)
y = x
x += 10
- self.assertTrue(y is x)
+ self.assertIs(y, x)
self.assertEqual(x.val, 12)
x = aug_test3(3)
@@ -104,7 +104,7 @@
x += 10
self.assertIsInstance(x, aug_test3)
- self.assertTrue(y is not x)
+ self.assertIsNot(y, x)
self.assertEqual(x.val, 13)
« no previous file with comments | « Lib/test/test_asyncore.py ('k') | Lib/test/test_binop.py » ('j') | no next file with comments »

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