diff options
Diffstat (limited to '_test/test_cyaml.py')
-rw-r--r-- | _test/test_cyaml.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/_test/test_cyaml.py b/_test/test_cyaml.py index 1d4c356..6b618f3 100644 --- a/_test/test_cyaml.py +++ b/_test/test_cyaml.py @@ -7,9 +7,11 @@ from textwrap import dedent @pytest.mark.skipif( - platform.python_implementation() == 'Jython', reason='Jython throws RepresenterError' + platform.python_implementation() in ['Jython', 'PyPy'], + reason='Jython throws RepresenterError' ) def test_load_cyaml(): + print("???????????????????????", platform.python_implementation()) import ruamel.yaml if sys.version_info >= (3, 8): @@ -20,7 +22,9 @@ def test_load_cyaml(): ruamel.yaml.load('abc: 1', Loader=CLoader) -@pytest.mark.skipif(sys.version_info >= (3, 8), reason='no _PyGC_FINALIZED') +@pytest.mark.skipif(sys.version_info >= (3, 8) + or platform.python_implementation() in ['Jython', 'PyPy'], + reason='no _PyGC_FINALIZED') def test_dump_cyaml(): import ruamel.yaml @@ -36,6 +40,9 @@ def test_dump_cyaml(): assert res == 'a: 1\nb: 2\n' +@pytest.mark.skipif( + platform.python_implementation() in ['Jython', 'PyPy'], reason='not avialable' +) def test_load_cyaml_1_2(): # issue 155 import ruamel.yaml @@ -52,6 +59,9 @@ def test_load_cyaml_1_2(): yaml.load(inp) +@pytest.mark.skipif( + platform.python_implementation() in ['Jython', 'PyPy'], reason='not available' +) def test_dump_cyaml_1_2(): # issue 155 import ruamel.yaml |