Home
last modified time | relevance | path

Searched refs:WierdNum (Results 1 – 1 of 1) sorted by relevance

/external/python/cpython3/Lib/test/test_json/
Dtest_enum.py29 class WierdNum(float, Enum): class
43 for enum, expected in zip(WierdNum, ('Infinity', '-Infinity', 'NaN')):
67 self.assertEqual(self.dumps(list(WierdNum)),
69 self.assertEqual(self.loads(self.dumps(list(WierdNum)))[:2],
70 list(WierdNum)[:2])
71 self.assertTrue(isnan(self.loads(self.dumps(list(WierdNum)))[2]))
76 i, j, n = WierdNum
103 i=WierdNum.inf,
104 j=WierdNum.neg_inf,
105 n=WierdNum.nan,