summaryrefslogtreecommitdiff
path: root/_test/roundtrip.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2018-10-06 19:34:28 +0200
committerAnthon van der Neut <anthon@mnt.org>2018-10-06 19:34:28 +0200
commitffaab93d8964e7fbcbc2efe3399ae128fb4c5756 (patch)
tree3f76d9322d1edfc8ca66e4bbe98cfed8c3cf7a11 /_test/roundtrip.py
parent334c992703b2093a26b59d2cac403375b568c617 (diff)
downloadruamel.yaml-ffaab93d8964e7fbcbc2efe3399ae128fb4c5756.tar.gz
fix issue #245 regression on C parsing of explicit 1.1 source0.15.72
*When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to '_test/roundtrip.py')
-rw-r--r--_test/roundtrip.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/_test/roundtrip.py b/_test/roundtrip.py
index 8e1e66e..ee430a3 100644
--- a/_test/roundtrip.py
+++ b/_test/roundtrip.py
@@ -251,6 +251,10 @@ def save_and_run(program, base_dir=None, output=None, file_name=None, optimized=
print('running:', *cmd)
res = check_output(cmd, stderr=STDOUT, universal_newlines=True)
if output is not None:
+ if '__pypy__' in sys.builtin_module_names:
+ res = res.splitlines(True)
+ res = [line for line in res if 'no version info' not in line]
+ res = ''.join(res)
print('result: ', res, end='')
print('expected:', output, end='')
assert res == output