Skip to content

Commit

Permalink
move test_NamedExpr out of src/RestrictedPython/tests to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d-maurer committed May 9, 2020
1 parent f93c51e commit cfd303f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/RestrictedPython/tests/__init__.py

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def visit_NamedExpr(self, node):

mod = parse("if x:= x + 1: True\n")
mod = TransformNamedExprTarget().visit(mod)
with self.assertRaisesRegexp(
with self.assertRaisesRegex(
SyntaxError,
"Assignment expressions are only allowed for simple target"):
code, gs = compile_str(mod)
Expand Down

0 comments on commit cfd303f

Please sign in to comment.