File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -114,14 +114,16 @@ def test_varargs_kwargs_as_string(self) -> None:
114
114
ast = abuilder .string_build ("raise_string(*args, **kwargs)" ).body [0 ]
115
115
self .assertEqual (ast .as_string (), "raise_string(*args, **kwargs)" )
116
116
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" )
118
118
def test_module_as_string_pre_3_14 (self ) -> None :
119
119
"""Check as_string on a whole module prepared to be returned identically for py < 3.14."""
120
120
module = resources .build_file ("data/module.py" , "data.module" )
121
121
with open (resources .find ("data/module.py" ), encoding = "utf-8" ) as fobj :
122
122
self .assertMultiLineEqual (module .as_string (), fobj .read ())
123
123
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
+ )
125
127
def test_module_as_string (self ) -> None :
126
128
"""Check as_string on a whole module prepared to be returned identically for py > 3.14."""
127
129
module = resources .build_file ("data/module3.14.py" , "data.module3.14" )
You can’t perform that action at this time.
0 commit comments