]> granicus.if.org Git - python/commitdiff
Correct a couple of assert* methods. Patch by Dave Malcolm.
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 17 Aug 2010 08:35:41 +0000 (08:35 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Tue, 17 Aug 2010 08:35:41 +0000 (08:35 +0000)
Lib/test/test_site.py

index 37ec61adbb068ca66650181078f7e05d1a9042d8..013bfe10940f4c3e14e09d9f8178dc4bdd4fe4da 100644 (file)
@@ -168,14 +168,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)