diff options
author | Anthon van der Neut <anthon@mnt.org> | 2021-04-19 08:17:05 +0200 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2021-04-19 08:17:05 +0200 |
commit | 3d77f16e00124b74e150625396617b41e41da014 (patch) | |
tree | ed01337ba7c78a5a5e68255a7a574e00e78556fc /_test | |
parent | 54cb146e541b557471a19fcd884abd7e441d85b8 (diff) | |
download | ruamel.yaml-3d77f16e00124b74e150625396617b41e41da014.tar.gz |
removed (object), prepare new RTScanner
Diffstat (limited to '_test')
-rw-r--r-- | _test/test_comments.py | 8 | ||||
-rw-r--r-- | _test/test_z_data.py | 3 |
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 |