summaryrefslogtreecommitdiff
path: root/_test
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2021-04-19 08:17:05 +0200
committerAnthon van der Neut <anthon@mnt.org>2021-04-19 08:17:05 +0200
commit3d77f16e00124b74e150625396617b41e41da014 (patch)
treeed01337ba7c78a5a5e68255a7a574e00e78556fc /_test
parent54cb146e541b557471a19fcd884abd7e441d85b8 (diff)
downloadruamel.yaml-3d77f16e00124b74e150625396617b41e41da014.tar.gz
removed (object), prepare new RTScanner
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