Author: Wim Lavrijsen <[email protected]>
Branch: cppyy-packaging
Changeset: r92057:8a2ade4d76bf
Date: 2017-08-03 13:23 -0700
http://bitbucket.org/pypy/pypy/changeset/8a2ade4d76bf/
Log: remove test_aclassloader and test_streams as these are backend tests
diff --git a/pypy/module/_cppyy/test/test_aclassloader.py
b/pypy/module/_cppyy/test/test_aclassloader.py
deleted file mode 100644
--- a/pypy/module/_cppyy/test/test_aclassloader.py
+++ /dev/null
@@ -1,28 +0,0 @@
-import py, os, sys
-
-
-currpath = py.path.local(__file__).dirpath()
-
-def setup_module(mod):
- if sys.platform == 'win32':
- py.test.skip("win32 not supported so far")
- err = os.system("cd '%s' && make example01Dict.so" % currpath)
- if err:
- raise OSError("'make' failed (see stderr)")
-
-
-class AppTestACLASSLOADER:
- spaceconfig = dict(usemodules=['_cppyy', '_rawffi', 'itertools'])
-
- def setup_class(cls):
- cls.space.appexec([], """():
- import _cppyy""")
-
- def test01_class_autoloading(self):
- """Test whether a class can be found through .rootmap."""
- import _cppyy
- example01_class = _cppyy.gbl.example01
- assert example01_class
- cl2 = _cppyy.gbl.example01
- assert cl2
- assert example01_class is cl2
diff --git a/pypy/module/_cppyy/test/test_streams.py
b/pypy/module/_cppyy/test/test_streams.py
deleted file mode 100644
--- a/pypy/module/_cppyy/test/test_streams.py
+++ /dev/null
@@ -1,38 +0,0 @@
-import py, os, sys
-
-
-currpath = py.path.local(__file__).dirpath()
-test_dct = str(currpath.join("std_streamsDict.so"))
-
-def setup_module(mod):
- if sys.platform == 'win32':
- py.test.skip("win32 not supported so far")
- err = os.system("cd '%s' && make std_streamsDict.so" % currpath)
- if err:
- raise OSError("'make' failed (see stderr)")
-
-class AppTestSTDStreams:
- spaceconfig = dict(usemodules=['_cppyy', '_rawffi', 'itertools'])
-
- def setup_class(cls):
- cls.w_test_dct = cls.space.newtext(test_dct)
- cls.w_streams = cls.space.appexec([], """():
- import _cppyy
- return _cppyy.load_reflection_info(%r)""" % (test_dct, ))
-
- def test01_std_ostream(self):
- """Test availability of std::ostream"""
-
- import _cppyy
-
- assert _cppyy.gbl.std is _cppyy.gbl.std
- assert _cppyy.gbl.std.ostream is _cppyy.gbl.std.ostream
-
- 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]
https://mail.python.org/mailman/listinfo/pypy-commit