A few Python 2 fixes
This commit is contained in:
1 parent
cc68942ec1
commit
4176af337f
6 files changed
+13
-12
No files matched your search
@@ -119,11 +119,7 @@ def test_goto_assignments_on_non_name(Script, environment):
|
||||
assert Script('for').goto_assignments() == []
|
||||
|
||||
assert Script('assert').goto_assignments() == []
|
||||
if environment.version_info.major == 2:
|
||||
# In Python 2.7 True is still a name.
|
||||
assert Script('True').goto_assignments()[0].description == 'instance True'
|
||||
else:
|
||||
assert Script('True').goto_assignments() == []
|
||||
assert Script('True').goto_assignments() == []
|
||||
|
||||
|
||||
def test_goto_definitions_on_non_name(Script):
|
||||
|
||||
Reference in new issue
Block a user