You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 08:49:51 +08:00
simplified test cases for test_build_const_key_map
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user