Skip to content

Commit ff0bd0f

Browse files
duh
1 parent 673cc11 commit ff0bd0f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_nodes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,16 @@ def test_varargs_kwargs_as_string(self) -> None:
114114
ast = abuilder.string_build("raise_string(*args, **kwargs)").body[0]
115115
self.assertEqual(ast.as_string(), "raise_string(*args, **kwargs)")
116116

117-
@pytest.mark.skipif(PY314_PLUS, "return in finally is now a syntax error")
117+
@pytest.mark.skipif(PY314_PLUS, reason="return in finally is now a syntax error")
118118
def test_module_as_string_pre_3_14(self) -> None:
119119
"""Check as_string on a whole module prepared to be returned identically for py < 3.14."""
120120
module = resources.build_file("data/module.py", "data.module")
121121
with open(resources.find("data/module.py"), encoding="utf-8") as fobj:
122122
self.assertMultiLineEqual(module.as_string(), fobj.read())
123123

124-
@pytest.mark.skipif(not PY314_PLUS, "return in finally is now a syntax error")
124+
@pytest.mark.skipif(
125+
not PY314_PLUS, reason="return in finally is now a syntax error"
126+
)
125127
def test_module_as_string(self) -> None:
126128
"""Check as_string on a whole module prepared to be returned identically for py > 3.14."""
127129
module = resources.build_file("data/module3.14.py", "data.module3.14")

0 commit comments

Comments
 (0)