Skip to content

Commit 077a394

Browse files
authored
Updated stack level (#217)
1 parent 02d73b9 commit 077a394

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/generator_python3_marshmallow_test.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ def test_generate(schema_filename):
3232
try:
3333
fixture = astor.parse_file(fixture_filename)
3434
except FileNotFoundError:
35-
warnings.warn(f"Fixture not implemented yet: {os.path.basename(fixture_filename)}")
35+
warnings.warn(
36+
f"Fixture not implemented yet: {os.path.basename(fixture_filename)}", stacklevel=2
37+
)
3638
return
3739

3840
generator = Python3MarshmallowGenerator(schema)

0 commit comments

Comments
 (0)