[pypy-commit] pypy reflex-support: test number 100!
wlav
noreply at buildbot.pypy.org
Tue Jun 26 21:15:54 CEST 2012
Author: Wim Lavrijsen <WLavrijsen at lbl.gov>
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)
More information about the pypy-commit
mailing list