Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarade authored and github-actions[bot] committed Mar 29, 2023
1 parent 77f82fd commit 92bc461
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions tests/library_analyzer/processing/api/test_infer_purity.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ def test_determine_open_mode(args: list[str], expected: OpenMode) -> None:
def fun1():
open("test1.txt") # default mode: read only
""",
[FileRead(source=StringLiteral(value="test1.txt")),
Call(expression=Reference(name="open('test1.txt')"))],
[FileRead(source=StringLiteral(value="test1.txt")), Call(expression=Reference(name="open('test1.txt')"))],
),
(
"""
Expand Down Expand Up @@ -301,25 +300,25 @@ def fun10():
def fun11(path11): # open with variable
open(path11)
""",
[FileRead(source=Reference("path11")),
Call(expression=Reference(name="open(path11)"))], # ??
[FileRead(source=Reference("path11")), Call(expression=Reference(name="open(path11)"))], # ??
),
(
"""
def fun12(path12): # open with variable write mode
open(path12, "w")
""",
[FileWrite(source=Reference(name='path12')),
Call(expression=Reference(name="open(path12, 'w')"))], # ??
[FileWrite(source=Reference(name="path12")), Call(expression=Reference(name="open(path12, 'w')"))], # ??
),
(
"""
def fun13(path13): # open with variable write mode
open(path13, "wb+")
""",
[FileRead(source=Reference(name='path13')),
FileWrite(source=Reference(name='path13')),
Call(expression=Reference(name="open(path13, 'wb+')"))], # ??
[
FileRead(source=Reference(name="path13")),
FileWrite(source=Reference(name="path13")),
Call(expression=Reference(name="open(path13, 'wb+')")),
], # ??
),
(
"""
Expand Down

0 comments on commit 92bc461

Please sign in to comment.