File: test_unicode.py

package info (click to toggle)
python-commentjson 0.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 184 kB
  • sloc: python: 520; makefile: 4
file content (27 lines) | stat: -rw-r--r-- 839 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import six
import platform
import unittest

from . import CommentJsonTest

if six.PY2:
    from json.tests.test_unicode import TestUnicode
else:
    from test.test_json.test_unicode import TestUnicode

version = platform.sys.version_info


class TestCommentJsonUnicode(TestUnicode, CommentJsonTest):

    @unittest.skipIf(version.major == 3 and version.minor <= 5,
                     ('Invalid test case since the API used in the actual '
                      'test case is not supported by commentjson.'))
    def test_encoding1(self):
        pass

    @unittest.skipIf((version.major == 2 or
                      (version.major == 3 and version.minor <= 5)),
                     'Invalid test case for Python 2.7 and 3+ to 3.5.')
    def test_bytes_decode(self):
        TestCommentJsonUnicode.__bases__[0].test_bytes_decode(self)