]> granicus.if.org Git - python/commitdiff
Fixed the test
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sun, 4 Jul 2010 17:47:30 +0000 (17:47 +0000)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>
Sun, 4 Jul 2010 17:47:30 +0000 (17:47 +0000)
Demo/classes/Range.py

index a0cef742088afa74cbeca526e2f23e051be15916..4e6f45d57c3b71af3999fe3b3786393404f66529 100644 (file)
@@ -66,7 +66,7 @@ class oldrange:
 def test():
     import time, builtins
     #Just a quick sanity check
-    correct_result = builtins.range(5, 100, 3)
+    correct_result = list(builtins.range(5, 100, 3))
     oldrange_result = list(oldrange(5, 100, 3))
     genrange_result = list(genrange(5, 100, 3))
     if genrange_result != correct_result or oldrange_result != correct_result: