

def test_dict_numpy_complex(self):
    x = {
        'foo': np.complex128((1.0 + 1j)),
        'bar': np.complex128((2.0 + 2j)),
    }
    x_rec = self.encode_decode(x)
    x.assertEqual(x, x_rec)
    for key in x:
        self.assertEqual(type(x[key]), type(x_rec[key]))

dataset/ETHPy150Open pydata/pandas/pandas/io/tests/test_packers.py TestNumpy.test_dict_numpy_complex/VarMisuse@53/67 `self`->`x`