Skip to content

Commit

Permalink
fix Coding coventions after #173
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed Sep 1, 2019
1 parent c04efab commit 37b7616
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
1 change: 1 addition & 0 deletions tests/transformer/test_dict_comprehension.py
@@ -1,6 +1,7 @@
from RestrictedPython._compat import IS_PY38_OR_GREATER
from tests.helper import restricted_exec


DICT_COMPREHENSION_WITH_ATTRS = """
def call(seq):
return {y.k: y.v for y in seq.z if y.k}
Expand Down
13 changes: 8 additions & 5 deletions tests/transformer/test_fstring.py
@@ -1,13 +1,13 @@
from RestrictedPython import compile_restricted_exec
from RestrictedPython._compat import IS_PY36_OR_GREATER
from tests.helper import restricted_exec

from sys import version_info

import pytest


@pytest.mark.skipif(not IS_PY36_OR_GREATER, reason="F-strings added in Python 3.6.")
@pytest.mark.skipif(
not IS_PY36_OR_GREATER,
reason="F-strings added in Python 3.6.",
)
def test_transform():
"""It compiles a function call successfully and returns the used name."""

Expand All @@ -19,7 +19,10 @@ def test_transform():
assert result.used_names == {'max': True}


@pytest.mark.skipif(not IS_PY36_OR_GREATER, reason="F-strings added in Python 3.6.")
@pytest.mark.skipif(
not IS_PY36_OR_GREATER,
reason="F-strings added in Python 3.6.",
)
def test_visit_invalid_variable_name():
"""Accessing private attributes is forbidden.
Expand Down

0 comments on commit 37b7616

Please sign in to comment.