File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,9 @@ def test_nss_join(self):
67
67
, 'There are 2 or more instances of ns namespace.' )
68
68
69
69
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 )
71
73
self .failUnless ( unnamed_enum in ns .declarations
72
74
, "namespace '%s' does not contains unnamed enum." % ns .name )
73
75
@@ -256,8 +258,6 @@ def test_member_function_type(self):
256
258
if self .global_ns .compiler != compilers .MSVC_PDB_9 :
257
259
self .failUnless ( function_type .has_const , " 'member_function_ptr_t' should be const function." )
258
260
259
- sf = self .glo
260
- members_pointers_t
261
261
def test_member_variable_type (self ):
262
262
if self .global_ns .compiler == compilers .MSVC_PDB_9 :
263
263
return
You can’t perform that action at this time.
0 commit comments