33"""
44
55
6+ import unittest2
67import lldb
78from lldbsuite .test .decorators import *
89from lldbsuite .test .lldbtest import *
@@ -40,7 +41,7 @@ def runToBkpt(self, command):
4041 )
4142
4243 @skipIfWindows # This is flakey on Windows: llvm.org/pr38373
43- @expectedFailure ( " CU-local objects incorrectly scoped" )
44+ @unittest2 . expectedFailure # CU-local objects incorrectly scoped
4445 def test_scope_lookup_with_run_command_globals (self ):
4546 """Test scope lookup of functions in lldb."""
4647 self .build ()
@@ -210,7 +211,7 @@ def test_scope_lookup_with_run_command(self):
210211 # Evaluate B::func() - should call B::func()
211212 self .expect_expr ("B::func()" , result_type = "int" , result_value = "4" )
212213
213- @expectedFailure ( " lldb scope lookup of functions bugs" )
214+ @unittest2 . expectedFailure # lldb scope lookup of functions bugs
214215 def test_function_scope_lookup_with_run_command (self ):
215216 """Test scope lookup of functions in lldb."""
216217 self .build ()
@@ -271,7 +272,7 @@ def test_scope_after_using_directive_lookup_with_run_command(self):
271272 # Evaluate func2() - should call A::func2()
272273 self .expect_expr ("func2()" , result_type = "int" , result_value = "3" )
273274
274- @expectedFailure ( " lldb scope lookup after using declaration bugs" )
275+ @unittest2 . expectedFailure # lldb scope lookup after using declaration bugs
275276 # NOTE: this test may fail on older systems that don't emit import
276277 # emtries in DWARF - may need to add checks for compiler versions here.
277278 def test_scope_after_using_declaration_lookup_with_run_command (self ):
@@ -293,7 +294,7 @@ def test_scope_after_using_declaration_lookup_with_run_command(self):
293294 # Evaluate func() - should call A::func()
294295 self .expect_expr ("func()" , result_type = "int" , result_value = "3" )
295296
296- @expectedFailure ( " lldb scope lookup ambiguity after using bugs" )
297+ @unittest2 . expectedFailure # lldb scope lookup ambiguity after using bugs
297298 def test_scope_ambiguity_after_using_lookup_with_run_command (self ):
298299 """Test scope lookup ambiguity after using in lldb."""
299300 self .build ()
0 commit comments