Skip to content

Commit

Permalink
fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
loechel committed May 18, 2018
1 parent 3e0df73 commit efbd86b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/transformer/test_import.py
Expand Up @@ -50,13 +50,13 @@ def test_RestrictingNodeTransformer__visit_Import__6(c_exec):
they will be deprecated in a future version."""
message = 'Line 1: module name starts "_", which is deprecated and will be forbidden in RestrictedPython 5.' # NOQA: E501
result = c_exec('from _a import m')
assert result.warnings == ([message,])
assert result.warnings == ([message, ])
result = c_exec('from a._b import m')
assert result.warnings == ([message,])
assert result.warnings == ([message, ])
result = c_exec('from _a.b import m')
assert result.warnings == ([message,])
assert result.warnings == ([message, ])
result = c_exec('from _a._b import m as x')
assert result.warnings == ([message,])
assert result.warnings == ([message, ])
# Placeholder for future version
# """Deny imports from modules starting with `_`."""
# message = 'Line 1: module name starts "_", which is forbidden.'
Expand Down

0 comments on commit efbd86b

Please sign in to comment.