summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
Diffstat (limited to '_test')
-rw-r--r--_test/test_comments.py8
-rw-r--r--_test/test_z_data.py3
2 files changed, 11 insertions, 0 deletions
diff --git a/_test/test_comments.py b/_test/test_comments.py
index 3173995..dbf035d 100644
--- a/_test/test_comments.py
+++ b/_test/test_comments.py
@@ -813,6 +813,14 @@ class TestEmptyValueBeforeComments:
- []
""")
+ def test_comment_after_block_scalar_indicator(self):
+ round_trip("""\
+ a: | # abc
+ test 1
+ test 2
+ # all done
+ """)
+
test_block_scalar_commented_line_template = """\
y: p
diff --git a/_test/test_z_data.py b/_test/test_z_data.py
index e48e9d5..965eb3d 100644
--- a/_test/test_z_data.py
+++ b/_test/test_z_data.py
@@ -89,6 +89,9 @@ def pytest_generate_tests(metafunc):
if os.environ.get('RUAMELAUTOTEST') == '1':
if path.parent.stem != 'debug':
continue
+ elif path.parent.stem == 'debug':
+ # don't test debug entries for production
+ continue
stem = path.stem
if stem.startswith('.#'): # skip emacs temporary file
continue