@@ -28,7 +28,7 @@ class CheckImportsTest(unittest.TestCase):
2828'test' , 'fixtures' , 'tools' , 'checkimports' )
2929
3030def test_unused_and_unsorted (self ):
31- with captured_output () as (out , err ):
31+ with captured_output () as (out , _err ):
3232self .assertEqual (is_valid (path .join (self .fixturesDir , 'invalid.cc' )),
3333False )
3434output = out .getvalue ()
@@ -42,21 +42,21 @@ def test_unused_and_unsorted(self):
4242output );
4343
4444def test_unused_complex (self ):
45- with captured_output () as (out , err ):
45+ with captured_output () as (out , _err ):
4646self .assertEqual (is_valid (path .join (self .fixturesDir , 'maybe.cc' )),
4747False )
4848output = out .getvalue ()
4949self .assertIn ('does not use "Local"' , output );
5050
5151def test_unused_simple (self ):
52- with captured_output () as (out , err ):
52+ with captured_output () as (out , _err ):
5353self .assertEqual (is_valid (path .join (self .fixturesDir , 'unused.cc' )),
5454False )
5555output = out .getvalue ()
5656self .assertIn ('does not use "Context"' , output );
5757
5858def test_unsorted (self ):
59- with captured_output () as (out , err ):
59+ with captured_output () as (out , _err ):
6060self .assertEqual (is_valid (path .join (self .fixturesDir , 'unsorted.cc' )),
6161False )
6262output = out .getvalue ()
@@ -67,7 +67,7 @@ def test_unsorted(self):
6767output );
6868
6969def test_valid (self ):
70- with captured_output () as (out , err ):
70+ with captured_output () as (out , _err ):
7171self .assertEqual (is_valid (path .join (self .fixturesDir , 'valid.cc' )),
7272True )
7373output = out .getvalue ()
0 commit comments