Skip to content

Commit 3b7183b

Browse files
committed
Added after gen readonly
1 parent b8a8092 commit 3b7183b

File tree

1 file changed

+7
-0
lines changed
  • src/tests/data-tests/python_yaml_issue_33

1 file changed

+7
-0
lines changed

src/tests/data-tests/python_yaml_issue_33/gen.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,10 @@
3535

3636
with open("example.yaml", 'w') as f:
3737
yaml.dump(a_dict, f, default_flow_style=False, sort_keys=False)
38+
39+
40+
with open("example.yaml") as stream:
41+
try:
42+
print(yaml.safe_load(stream))
43+
except yaml.YAMLError as exc:
44+
print(exc)

0 commit comments

Comments
 (0)