Skip to content

Commit

Permalink
cs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayjest committed Nov 18, 2024
1 parent 38eb34c commit 69d77de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ disable=raw-checker-failed,
# added
missing-module-docstring,
missing-function-docstring,
too-many-positional-arguments
missing-class-docstring,
expression-not-assigned,
invalid-name,
Expand Down
14 changes: 4 additions & 10 deletions tests/basic/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,16 @@

def test_python_out():
# language=python
o, e = py.execute(
"""
o, e = py.execute("""
for i in range(10):
print(i, end='')
"""
)
""")
assert o, e == ("0123456789", "")


def test_error():
o, e = py.execute(
"""
o, e = py.execute("""
not a python code
""",
traceback=False,
log_errors=False,
)
""", traceback=False, log_errors=False)
assert o == ""
assert e == "SyntaxError: invalid syntax"

0 comments on commit 69d77de

Please sign in to comment.