summaryrefslogtreecommitdiff
path: root/_test/test_cyaml.py
blob: 26f2683f2c493b1348233eec3de6a2a014e92dec (plain)
1
2
3
4
5
6
7
8
9
10
11

import platform
import pytest

@pytest.mark.skipif(platform.python_implementation() == 'Jython',
                reason="Jython throws RepresenterError")
def test_load_cyaml():
    import ruamel.yaml
    assert ruamel.yaml.__with_libyaml__
    from ruamel.yaml.cyaml import CLoader
    ruamel.yaml.load("abc: 1", Loader=CLoader)