You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: test_inorder (__main__.SortedTest)
...
File "./test/test_sorted.py", line 9, in sort
items[:] = sorted(items)
TypeError: 'range' object does not support item assignment
First error is due to range being a generator object by default in Python 3. See this SO post. Should be a quick fix by changing items = range(1,i,d) to items = list(range(1,i,d)) in sort_tester.py.
I'm not sure about the second just yet.
The text was updated successfully, but these errors were encountered:
Tests work under Python 2.7 as expected. However, with
Running
Obtains (truncated traceback)
and
First error is due to
range
being a generator object by default in Python 3. See this SO post. Should be a quick fix by changingitems = range(1,i,d)
toitems = list(range(1,i,d))
insort_tester.py
.I'm not sure about the second just yet.
The text was updated successfully, but these errors were encountered: