Fix unicode attribute error if typing installed on py2.7 (#363)
This commit is contained in:
1 parent
91ef83e830
commit
b5aba7243d
4 files changed
+14
-1
No files matched your search
@@ -204,6 +204,7 @@ def test_action_mapping():
|
||||
|
||||
@pytest.mark.parametrize('choices, expected_type', [
|
||||
(['A', 'B'], openapi.TYPE_STRING),
|
||||
([u'A', u'B'], openapi.TYPE_STRING),
|
||||
([123, 456], openapi.TYPE_INTEGER),
|
||||
([1.2, 3.4], openapi.TYPE_NUMBER),
|
||||
(['A', 456], openapi.TYPE_STRING)
|
||||
|
||||
Reference in new issue
Block a user