summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_site.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-08-17 08:35:41 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2010-08-17 08:35:41 (GMT)
commitfc8b205da23ca8df81fafc1035119d4bdde826e0 (patch)
treeb05c50949df8a78e9dc41139c0d8256a0b18fdc9 /Lib/test/test_site.py
parenteae2da1da78bd13331c4a64ae02fb825eba6777e (diff)
downloadcpython-fc8b205da23ca8df81fafc1035119d4bdde826e0.zip
cpython-fc8b205da23ca8df81fafc1035119d4bdde826e0.tar.gz
cpython-fc8b205da23ca8df81fafc1035119d4bdde826e0.tar.bz2
Correct a couple of assert* methods. Patch by Dave Malcolm.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r--Lib/test/test_site.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py
index 37ec61a..013bfe1 100644
--- a/Lib/test/test_site.py
+++ b/Lib/test/test_site.py
@@ -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)