]> granicus.if.org Git - python/commitdiff
Merged revisions 84134 via svnmerge from
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 17 Aug 2010 08:38:05 +0000 (08:38 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Tue, 17 Aug 2010 08:38:05 +0000 (08:38 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r84134 | ezio.melotti | 2010-08-17 11:35:41 +0300 (Tue, 17 Aug 2010) | 1 line

  Correct a couple of assert* methods. Patch by Dave Malcolm.
........

Lib/test/test_site.py

index 192f58a664ebeb8776d6ff1f71b4765b6e8980a4..14d5ca05a7f54241abb9f03f697dff870ff07cce 100644 (file)
@@ -169,14 +169,14 @@ class HelperFunctionsTests(unittest.TestCase):
             wanted = os.path.join('xoxo', 'Lib', 'site-packages')
             self.assertEquals(dirs[0], wanted)
         elif os.sep == '/':
-            self.assertTrue(len(dirs), 2)
+            self.assertEqual(len(dirs), 2)
             wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3],
                                   'site-packages')
             self.assertEquals(dirs[0], wanted)
             wanted = os.path.join('xoxo', 'lib', 'site-python')
             self.assertEquals(dirs[1], wanted)
         else:
-            self.assertTrue(len(dirs), 2)
+            self.assertEqual(len(dirs), 2)
             self.assertEquals(dirs[0], 'xoxo')
             wanted = os.path.join('xoxo', 'lib', 'site-packages')
             self.assertEquals(dirs[1], wanted)