account py3 range objects
This commit is contained in:
@@ -221,7 +221,7 @@ class TestAssertionRewrite:
|
||||
|
||||
def test_len(self):
|
||||
def f():
|
||||
l = range(10)
|
||||
l = list(range(10))
|
||||
assert len(l) == 11
|
||||
assert getmsg(f).startswith("""assert 10 == 11
|
||||
+ where 10 = len([""")
|
||||
|
||||
Reference in New Issue
Block a user