Remove unnecessary code

This commit is contained in:
Dave Halter
2020-01-01 23:11:02 +01:00
parent 0a53ce5136
commit 04a738c014
2 changed files with 2 additions and 4 deletions

View File

@@ -267,7 +267,7 @@ def test_property_error_oldstyle(allow_unsafe_getattr):
_assert_interpreter_complete('foo.bar.baz', locals(), [])
if allow_unsafe_getattr:
assert lst == [1, 1]
assert lst == [1]
else:
# There should not be side effects
assert lst == []
@@ -287,7 +287,7 @@ def test_property_error_newstyle(allow_unsafe_getattr):
_assert_interpreter_complete('foo.bar.baz', locals(), [])
if allow_unsafe_getattr:
assert lst == [1, 1]
assert lst == [1]
else:
# There should not be side effects
assert lst == []