mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Patch by Christian Heimes to change self.assert_(x == y) into
self.assertEqual(x, y). (Christian used self.failUnlessEqual(), but the double negative makes it hard to grok, so I changed it.)
This commit is contained in:
parent
c9b9de1797
commit
e61fd5b5ed
23 changed files with 294 additions and 294 deletions
|
|
@ -53,7 +53,7 @@ class TemporaryFileTests(unittest.TestCase):
|
|||
self.check_tempfile(name)
|
||||
|
||||
name = os.tempnam(test_support.TESTFN, "pfx")
|
||||
self.assert_(os.path.basename(name)[:3] == "pfx")
|
||||
self.assertEqual(os.path.basename(name)[:3], "pfx")
|
||||
self.check_tempfile(name)
|
||||
|
||||
def test_tmpfile(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue