Skip to content

Commit e5fd81f

Browse files
committed
[cppyy] Minimise direct imports of libcppyy.so.
This will facilitate moving it to a new location in the next commit.
1 parent 8a9f101 commit e5fd81f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

roottest/python/basic/PyROOT_datatypetest.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def setup_class(cls):
3737
cls.datatypes = cppyy.load_reflection_info(cls.test_dct)
3838
cls.N = cppyy.gbl.N
3939
# In new Cppyy, nullptr can't be found in gbl.
40-
# Take it from libcppyy (we could also use ROOT.nullptr)
41-
import libcppyy
42-
cls.nullptr = libcppyy.nullptr
40+
cls.nullptr = cppyy._backend.nullptr
4341

4442
def test01_load_reflection_cache(self):
4543
"""Loading reflection info twice should result in the same object"""

roottest/python/basic/PyROOT_datatypetest_numpy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def setup_class(cls):
3737
cls.datatypes = cppyy.load_reflection_info(cls.test_dct)
3838
cls.N = cppyy.gbl.N
3939
# In new Cppyy, nullptr can't be found in gbl.
40-
# Take it from libcppyy (we could also use ROOT.nullptr)
41-
import libcppyy
42-
cls.nullptr = libcppyy.nullptr
40+
cls.nullptr = cppyy._backend.nullptr
4341

4442
def test01_buffer_to_numpy(self):
4543
"""Wrap buffer with NumPy array"""

0 commit comments

Comments
 (0)