Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions test/test_stltypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
def setup_module(mod):
setup_make("stltypes")

global_n = 5

# after CPython's Lib/test/seq_tests.py
def iterfunc(seqn):
Expand Down Expand Up @@ -197,7 +198,7 @@ def setup_class(cls):
cls.test_dct = test_dct
import cppyy
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N
cls.N = global_n

def test01_builtin_type_vector_types(self):
"""Test access to std::vector<int>/std::vector<double>"""
Expand Down Expand Up @@ -1733,7 +1734,7 @@ def setup_class(cls):
cls.test_dct = test_dct
import cppyy
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N
cls.N = global_n

def test01_deque_byvalue_regression(self):
"""Return by value of a deque used to crash"""
Expand All @@ -1760,7 +1761,7 @@ def setup_class(cls):
cls.test_dct = test_dct
import cppyy
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N
cls.N = global_n

def test01_set_iteration(self):
"""Iterate over a set"""
Expand Down Expand Up @@ -1853,7 +1854,7 @@ def setup_class(cls):
cls.test_dct = test_dct
import cppyy
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N
cls.N = global_n

def test01_tuple_creation_and_access(self):
"""Create tuples and access their elements"""
Expand Down Expand Up @@ -1943,7 +1944,7 @@ def setup_class(cls):
cls.test_dct = test_dct
import cppyy
cls.stltypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N
cls.N = global_n

def test01_pair_pack_unpack(self):
"""Pack/unpack pairs"""
Expand Down