@@ -28,7 +28,7 @@ class CheckImportsTest(unittest.TestCase):
28
28
'test' , 'fixtures' , 'tools' , 'checkimports' )
29
29
30
30
def test_unused_and_unsorted (self ):
31
- with captured_output () as (out , err ):
31
+ with captured_output () as (out , _err ):
32
32
self .assertEqual (is_valid (path .join (self .fixturesDir , 'invalid.cc' )),
33
33
False )
34
34
output = out .getvalue ()
@@ -42,21 +42,21 @@ def test_unused_and_unsorted(self):
42
42
output );
43
43
44
44
def test_unused_complex (self ):
45
- with captured_output () as (out , err ):
45
+ with captured_output () as (out , _err ):
46
46
self .assertEqual (is_valid (path .join (self .fixturesDir , 'maybe.cc' )),
47
47
False )
48
48
output = out .getvalue ()
49
49
self .assertIn ('does not use "Local"' , output );
50
50
51
51
def test_unused_simple (self ):
52
- with captured_output () as (out , err ):
52
+ with captured_output () as (out , _err ):
53
53
self .assertEqual (is_valid (path .join (self .fixturesDir , 'unused.cc' )),
54
54
False )
55
55
output = out .getvalue ()
56
56
self .assertIn ('does not use "Context"' , output );
57
57
58
58
def test_unsorted (self ):
59
- with captured_output () as (out , err ):
59
+ with captured_output () as (out , _err ):
60
60
self .assertEqual (is_valid (path .join (self .fixturesDir , 'unsorted.cc' )),
61
61
False )
62
62
output = out .getvalue ()
@@ -67,7 +67,7 @@ def test_unsorted(self):
67
67
output );
68
68
69
69
def test_valid (self ):
70
- with captured_output () as (out , err ):
70
+ with captured_output () as (out , _err ):
71
71
self .assertEqual (is_valid (path .join (self .fixturesDir , 'valid.cc' )),
72
72
True )
73
73
output = out .getvalue ()
0 commit comments