Fix test of count.__repr__() to ignore the 'L' if the count is a long
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 3a370d9..1a3064c 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -67,7 +67,10 @@
c.next()
self.assertEqual(c.next(), -8)
for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5):
- self.assertEqual(repr(count(i)), 'count(%r)' % i)
+ # Test repr (ignoring the L in longs)
+ r1 = repr(count(i)).replace('L', '')
+ r2 = 'count(%r)'.__mod__(i).replace('L', '')
+ self.assertEqual(r1, r2)
def test_cycle(self):
self.assertEqual(take(10, cycle('abc')), list('abcabcabca'))