X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=AppPkg%2FApplications%2FPython%2FPython-2.7.10%2FLib%2Fjson%2Ftests%2Ftest_check_circular.py;fp=AppPkg%2FApplications%2FPython%2FPython-2.7.10%2FLib%2Fjson%2Ftests%2Ftest_check_circular.py;h=0000000000000000000000000000000000000000;hp=94a63c5beb1fb2e64a133afef615a852249508ae;hb=964f432b9b0afe103c41c7613fade3e699118afe;hpb=e2d3a25f1a3135221a9c8061e1b8f90245d727eb diff --git a/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_check_circular.py b/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_check_circular.py deleted file mode 100644 index 94a63c5beb..0000000000 --- a/AppPkg/Applications/Python/Python-2.7.10/Lib/json/tests/test_check_circular.py +++ /dev/null @@ -1,34 +0,0 @@ -from json.tests import PyTest, CTest - - -def default_iterable(obj): - return list(obj) - -class TestCheckCircular(object): - def test_circular_dict(self): - dct = {} - dct['a'] = dct - self.assertRaises(ValueError, self.dumps, dct) - - def test_circular_list(self): - lst = [] - lst.append(lst) - self.assertRaises(ValueError, self.dumps, lst) - - def test_circular_composite(self): - dct2 = {} - dct2['a'] = [] - dct2['a'].append(dct2) - self.assertRaises(ValueError, self.dumps, dct2) - - def test_circular_default(self): - self.dumps([set()], default=default_iterable) - self.assertRaises(TypeError, self.dumps, [set()]) - - def test_circular_off_default(self): - self.dumps([set()], default=default_iterable, check_circular=False) - self.assertRaises(TypeError, self.dumps, [set()], check_circular=False) - - -class TestPyCheckCircular(TestCheckCircular, PyTest): pass -class TestCCheckCircular(TestCheckCircular, CTest): pass