diff options
| author | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-14 14:35:32 -0700 | 
|---|---|---|
| committer | Joshua Harlow <harlowja@yahoo-inc.com> | 2012-09-14 14:35:32 -0700 | 
| commit | 5f33046a1e059f23ce1f4aceeec33813c57a7b70 (patch) | |
| tree | d43745415d077e203a68de1a9dc52c20c4624adc /tests | |
| parent | 2899c638c04907461024dff0d32c1cc57ae4b6d4 (diff) | |
| download | vyos-cloud-init-5f33046a1e059f23ce1f4aceeec33813c57a7b70.tar.gz vyos-cloud-init-5f33046a1e059f23ce1f4aceeec33813c57a7b70.zip | |
Cleanup pylint warnings.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unittests/test_signal.py | 13 | 
1 files changed, 7 insertions, 6 deletions
| diff --git a/tests/unittests/test_signal.py b/tests/unittests/test_signal.py index 02fd1ef1..8cb31fd7 100644 --- a/tests/unittests/test_signal.py +++ b/tests/unittests/test_signal.py @@ -1,6 +1,5 @@  """Tests for handling of signals within cloud init.""" -import os  import subprocess  import sys  import time @@ -17,11 +16,14 @@ class TestSignal(MockerTestCase):          # This is done since nose/unittest is actually setting up          # output capturing, signal handling itself, and its easier          # to just call out to cloudinit with a loop and see what the result is -        run_what = [sys.executable,  -                    '-c', ('import time; from cloudinit import signal_handler;' -                           'signal_handler.attach_handlers(); time.sleep(120)')] +        run_what = [sys.executable, +                    '-c', +                    ('import time; from cloudinit import signal_handler;' +                    'signal_handler.attach_handlers(); time.sleep(120)')] -        pc_info = subprocess.Popen(run_what, stderr=subprocess.PIPE, stdout=subprocess.PIPE) +        pc_info = subprocess.Popen(run_what, +                                   stderr=subprocess.PIPE, +                                   stdout=subprocess.PIPE)          # Let it start up          time.sleep(0.5) @@ -38,7 +40,6 @@ class TestSignal(MockerTestCase):          if pc_info.stderr:              outputs.write(pc_info.stderr.read())          val = outputs.getvalue() -        print val          # Check some of the outputs that should of happened          self.assertEquals(1, pc_info.wait()) | 
