summaryrefslogtreecommitdiff
path: root/Lib/json/tests
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/json/tests')
-rw-r--r--Lib/json/tests/__init__.py2
-rw-r--r--Lib/json/tests/test_recursion.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/json/tests/__init__.py b/Lib/json/tests/__init__.py
index a0797ea008..1a1e3e6d5a 100644
--- a/Lib/json/tests/__init__.py
+++ b/Lib/json/tests/__init__.py
@@ -31,7 +31,5 @@ def main():
runner.run(suite)
if __name__ == '__main__':
- import os
- import sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
main()
diff --git a/Lib/json/tests/test_recursion.py b/Lib/json/tests/test_recursion.py
index b82a373819..073d3c1bad 100644
--- a/Lib/json/tests/test_recursion.py
+++ b/Lib/json/tests/test_recursion.py
@@ -5,6 +5,7 @@ import json
class JSONTestObject:
pass
+
class RecursiveJSONEncoder(json.JSONEncoder):
recurse = False
def default(self, o):
@@ -15,6 +16,7 @@ class RecursiveJSONEncoder(json.JSONEncoder):
return 'JSONTestObject'
return json.JSONEncoder.default(o)
+
class TestRecursion(TestCase):
def test_listrecursion(self):
x = []