Skip to content

Commit

Permalink
don't use nested namespaces if not at least C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
wlav committed Nov 12, 2023
1 parent a7748b6 commit 1c03185
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_lowlevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ def setup_class(cls):
cls.datatypes = cppyy.load_reflection_info(cls.test_dct)
cls.N = cppyy.gbl.N

at_least_17 = 201402 < cppyy.gbl.gInterpreter.ProcessLine("__cplusplus;")
cls.has_nested_namespace = at_least_17

def test00_import_all(self):
"""Validity of `from cppyy.ll import *`"""

Expand Down Expand Up @@ -493,6 +496,9 @@ def test14_templated_arrays(self):
def test15_templated_arrays_gmpxx(self):
"""Use of gmpxx array types in templates"""

if not self.has_nested_namespace:
return

import cppyy

try:
Expand Down

0 comments on commit 1c03185

Please sign in to comment.