Skip to content

Commit

Permalink
Use double quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
GideonBear committed Dec 21, 2022
1 parent dfc7688 commit e207070
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/functional/c/consider/consider_using_with.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@


def test_pathlib_open():
_ = pathlib.Path('foo').open(encoding='utf8') # [consider-using-with]
_ = Path('foo').open(encoding='utf8') # [consider-using-with]
path = Path('foo')
_ = path.open(encoding='utf8') # [consider-using-with]
with Path('foo').open(encoding='utf8') as file: # must not trigger
_ = pathlib.Path("foo").open(encoding="utf8") # [consider-using-with]
_ = Path("foo").open(encoding="utf8") # [consider-using-with]
path = Path("foo")
_ = path.open(encoding="utf8") # [consider-using-with]
with Path("foo").open(encoding="utf8") as file: # must not trigger
_ = file.read()


Expand Down

0 comments on commit e207070

Please sign in to comment.