File: test_recursion.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-- 787 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_recursion import TestRecursion
else:
    from test.test_json.test_recursion import TestRecursion

version = platform.sys.version_info


class TestCommentJsonRecursion(TestRecursion, CommentJsonTest):

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

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