Skip to content

Commit 7fad490

Browse files
author
roman_yakovenko
committed
small fixes to update to new version of gccxml
1 parent d8f6d12 commit 7fad490

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unittests/core_tester.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ def test_nss_join(self):
6767
, 'There are 2 or more instances of ns namespace.' )
6868

6969
def _test_ns_membership(self, ns, enum_name ):
70-
unnamed_enum = ns.enum( '', recursive=False )
70+
unnamed_enum = ns.enum( lambda d: d.name == '' \
71+
and d.location.file_name.startswith( autoconfig.data_directory )
72+
, recursive=False )
7173
self.failUnless( unnamed_enum in ns.declarations
7274
, "namespace '%s' does not contains unnamed enum." % ns.name )
7375

@@ -256,8 +258,6 @@ def test_member_function_type(self):
256258
if self.global_ns.compiler != compilers.MSVC_PDB_9:
257259
self.failUnless( function_type.has_const, " 'member_function_ptr_t' should be const function." )
258260

259-
sf = self.glo
260-
members_pointers_t
261261
def test_member_variable_type(self):
262262
if self.global_ns.compiler == compilers.MSVC_PDB_9:
263263
return

0 commit comments

Comments
 (0)