[pypy-commit] pypy cppyy-packaging: defer pythonization of std::complex for now
wlav
pypy.commits at gmail.com
Thu Jul 26 12:38:30 EDT 2018
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
Branch: cppyy-packaging
Changeset: r94893:95e2a7e64991
Date: 2018-07-26 09:17 -0700
http://bitbucket.org/pypy/pypy/changeset/95e2a7e64991/
Log: defer pythonization of std::complex for now
diff --git a/pypy/module/_cppyy/test/test_datatypes.py b/pypy/module/_cppyy/test/test_datatypes.py
--- a/pypy/module/_cppyy/test/test_datatypes.py
+++ b/pypy/module/_cppyy/test/test_datatypes.py
@@ -61,7 +61,7 @@
#assert round(c.get_ldouble_r() + 88., 24) == 0
assert round(c.m_double + 77., 8) == 0
- # complex<double> type
+ """# complex<double> type
assert type(c.get_complex()) == complex
assert round(c.get_complex().real - 99., 11) == 0
assert round(c.get_complex().imag - 101., 11) == 0
@@ -83,7 +83,7 @@
assert type(c.get_icomplex_r()) == cppyy.gbl.std.complex[int]
assert round(c.get_icomplex_r().real - 121., 11) == 0
assert round(c.get_icomplex_r().imag - 141., 11) == 0
- assert complex(cppyy.gbl.std.complex['int'](1, 2)) == complex(1, 2)
+ assert complex(cppyy.gbl.std.complex['int'](1, 2)) == complex(1, 2)"""
# reading of enum types
assert c.m_enum == CppyyTestData.kNothing
More information about the pypy-commit
mailing list