[Python-checkins] r82551 - python/branches/py3k/Demo/classes/Range.py
alexander.belopolsky
python-checkins at python.org
Sun Jul 4 19:47:30 CEST 2010
Author: alexander.belopolsky
Date: Sun Jul 4 19:47:30 2010
New Revision: 82551
Log:
Fixed the test
Modified:
python/branches/py3k/Demo/classes/Range.py
Modified: python/branches/py3k/Demo/classes/Range.py
==============================================================================
--- python/branches/py3k/Demo/classes/Range.py (original)
+++ python/branches/py3k/Demo/classes/Range.py Sun Jul 4 19:47:30 2010
@@ -66,7 +66,7 @@
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:
More information about the Python-checkins
mailing list