Skip to content

Commit 42d8628

Browse files
committed
Fix pyflakes warnings
1 parent b6052f4 commit 42d8628

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

supervisor/tests/base.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
_NOW = 1151365354
22
_TIMEFORMAT = '%b %d %I:%M %p'
33

4-
import errno
54
import functools
6-
import os
75

86
from supervisor.compat import Fault
97
from supervisor.compat import as_bytes
@@ -235,7 +233,6 @@ def mktempfile(self, prefix, suffix, dir):
235233
return self.tempfile_name
236234

237235
def remove(self, path):
238-
import os
239236
if self.remove_exception is not None:
240237
raise self.remove_exception
241238
self.removed.append(path)

supervisor/tests/test_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ def test_transition_exited_to_starting_condit_fls_supervisor_running(self):
14481448
def test_transition_backoff_to_starting_supervisor_stopping(self):
14491449
from supervisor import events
14501450
emitted_events = []
1451-
events.subscribe(events.ProcessStateEvent, lambda x: L.append(x))
1451+
events.subscribe(events.ProcessStateEvent, lambda x: emitted_events.append(x))
14521452
from supervisor.states import ProcessStates, SupervisorStates
14531453
options = DummyOptions()
14541454
options.mood = SupervisorStates.SHUTDOWN
@@ -1490,7 +1490,7 @@ def subscriber(e):
14901490
def test_transition_backoff_to_starting_supervisor_running_notyet(self):
14911491
from supervisor import events
14921492
emitted_events = []
1493-
events.subscribe(events.ProcessStateEvent, lambda x: L.append(x))
1493+
events.subscribe(events.ProcessStateEvent, lambda x: emitted_events.append(x))
14941494
from supervisor.states import ProcessStates, SupervisorStates
14951495
options = DummyOptions()
14961496
options.mood = SupervisorStates.RUNNING

0 commit comments

Comments
 (0)