From 66f2ea042acf792bf6ff432f409628e1cec99e43 Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Thu, 8 Aug 2013 15:03:45 +0300 Subject: #18273: move the tests in Lib/test/json_tests to Lib/test/test_json and make them discoverable by unittest. Patch by Zachary Ware. --- Lib/test/json_tests/test_separators.py | 44 ---------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 Lib/test/json_tests/test_separators.py (limited to 'Lib/test/json_tests/test_separators.py') diff --git a/Lib/test/json_tests/test_separators.py b/Lib/test/json_tests/test_separators.py deleted file mode 100644 index a01b38c0807..00000000000 --- a/Lib/test/json_tests/test_separators.py +++ /dev/null @@ -1,44 +0,0 @@ -import textwrap -from test.json_tests import PyTest, CTest - - -class TestSeparators: - def test_separators(self): - h = [['blorpie'], ['whoops'], [], 'd-shtaeou', 'd-nthiouh', 'i-vhbjkhnth', - {'nifty': 87}, {'field': 'yes', 'morefield': False} ] - - expect = textwrap.dedent("""\ - [ - [ - "blorpie" - ] , - [ - "whoops" - ] , - [] , - "d-shtaeou" , - "d-nthiouh" , - "i-vhbjkhnth" , - { - "nifty" : 87 - } , - { - "field" : "yes" , - "morefield" : false - } - ]""") - - - d1 = self.dumps(h) - d2 = self.dumps(h, indent=2, sort_keys=True, separators=(' ,', ' : ')) - - h1 = self.loads(d1) - h2 = self.loads(d2) - - self.assertEqual(h1, h) - self.assertEqual(h2, h) - self.assertEqual(d2, expect) - - -class TestPySeparators(TestSeparators, PyTest): pass -class TestCSeparators(TestSeparators, CTest): pass -- cgit v1.2.3