Skip to content

Commit

Permalink
Improve tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Jan 31, 2017
1 parent 5e7fdaa commit 36fd520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_print_function.py
Expand Up @@ -50,8 +50,8 @@ def test_print_function__simple_prints():
glb = {'_print_': PrintCollector, '_getattr_': None}

code, errors = compiler(ALLOWED_PRINT_FUNCTION)[:2]
assert code is not None
assert errors == ()
assert code is not None
six.exec_(code, glb)
assert glb['_print']() == 'Hello World!\n'

Expand Down
1 change: 1 addition & 0 deletions tests/test_transformer.py
Expand Up @@ -945,6 +945,7 @@ def try_except_else_finally(m):
@pytest.mark.parametrize(*compile)
def test_transformer__RestrictingNodeTransformer__error_handling(compile, mocker):
code, errors = compile(TRY_EXCEPT_FINALLY)[:2]
assert errors == ()
assert code is not None

glb = {}
Expand Down

0 comments on commit 36fd520

Please sign in to comment.