Fix an issue around completions in comments before strings

This commit is contained in:
Dave Halter
2019-11-29 13:44:12 +01:00
parent 761f0828c7
commit 0e92be66db
2 changed files with 7 additions and 0 deletions

View File

@@ -125,6 +125,10 @@ def test_in_comment(Script):
assert not Script("max_attr_value = int(2) # Cast to int for spe").completions()
def test_in_comment_before_string(Script):
assert not Script(" # Foo\n'asdf'", line=1).completions()
def test_async(Script, environment):
if environment.version_info < (3, 5):
pytest.skip()