simplified test cases for test_build_const_key_map

This commit is contained in:
Daniel Bradburn
2017-01-17 23:07:27 +01:00
parent 6d7cec002a
commit e2fd308928

View File

@@ -0,0 +1,15 @@
import pytest
# uncompyle6
from uncompyle6 import PYTHON_VERSION
from validate import validate_uncompyle
@pytest.mark.skipif(PYTHON_VERSION < 3.6, reason='need at least python 3.6')
@pytest.mark.parametrize('text', (
"{-0.: 'a', -1: 'b'}",
"{0.: 'a', -1: 'b'}",
"{0: 1, 2: 3}",
"{-0: 1, 2: 3}",
))
def test_build_const_key_map(text):
validate_uncompyle(text)