Author: Wim Lavrijsen <[email protected]>
Branch: reflex-support
Changeset: r55840:a93cffca1bdd
Date: 2012-06-25 17:40 -0700
http://bitbucket.org/pypy/pypy/changeset/a93cffca1bdd/
Log: test number 100!
diff --git a/pypy/module/cppyy/test/std_streams.xml
b/pypy/module/cppyy/test/std_streams.xml
--- a/pypy/module/cppyy/test/std_streams.xml
+++ b/pypy/module/cppyy/test/std_streams.xml
@@ -4,4 +4,6 @@
<class name = "std::ios_base"/>
<class name = "std::basic_ios<char,std::char_traits<char> >"/>
+ <variable name="std::cout" />
+
</lcgdict>
diff --git a/pypy/module/cppyy/test/test_streams.py
b/pypy/module/cppyy/test/test_streams.py
--- a/pypy/module/cppyy/test/test_streams.py
+++ b/pypy/module/cppyy/test/test_streams.py
@@ -18,14 +18,13 @@
def setup_class(cls):
cls.space = space
env = os.environ
- cls.w_N = space.wrap(13)
cls.w_test_dct = space.wrap(test_dct)
- cls.w_datatypes = cls.space.appexec([], """():
+ cls.w_streams = cls.space.appexec([], """():
import cppyy
return cppyy.load_reflection_info(%r)""" % (test_dct, ))
def test01_std_ostream(self):
- """Test access to an std::vector<int>"""
+ """Test availability of std::ostream"""
import cppyy
@@ -34,3 +33,9 @@
assert callable(cppyy.gbl.std.ostream)
+ def test02_std_cout(self):
+ """Test access to std::cout"""
+
+ import cppyy
+
+ assert not (cppyy.gbl.std.cout is None)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit