summaryrefslogtreecommitdiffstats
path: root/Demo/classes
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-04 17:47:30 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-07-04 17:47:30 (GMT)
commit7cb6f2fe109f0231c4b11de03d2d5d96ca656f4d (patch)
tree5085ee30313408d7d27f8b386928c2f0ca02cd0d /Demo/classes
parent06360405dc33e0a33b1a5ec4042df19cb20d8bbc (diff)
downloadcpython-7cb6f2fe109f0231c4b11de03d2d5d96ca656f4d.zip
cpython-7cb6f2fe109f0231c4b11de03d2d5d96ca656f4d.tar.gz
cpython-7cb6f2fe109f0231c4b11de03d2d5d96ca656f4d.tar.bz2
Fixed the test
Diffstat (limited to 'Demo/classes')
-rw-r--r--Demo/classes/Range.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/classes/Range.py b/Demo/classes/Range.py
index a0cef74..4e6f45d 100644
--- a/Demo/classes/Range.py
+++ b/Demo/classes/Range.py
@@ -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: