|
11 | 11 | import inspect
|
12 | 12 |
|
13 | 13 | import runpy
|
14 |
| -import future.utils as utils |
15 | 14 | import flask
|
16 | 15 | import requests
|
17 | 16 |
|
| 17 | +from future import utils |
18 | 18 | from dash.testing.errors import NoAppFoundError, TestingTimeoutError, ServerCloseError
|
19 |
| -import dash.testing.wait as wait |
| 19 | +from dash.testing import wait |
20 | 20 |
|
21 | 21 |
|
22 | 22 | logger = logging.getLogger(__name__)
|
@@ -202,7 +202,7 @@ def start(
|
202 | 202 | logger.debug("start dash process with %s", args)
|
203 | 203 |
|
204 | 204 | try:
|
205 |
| - self.proc = subprocess.Popen( |
| 205 | + self.proc = subprocess.Popen( # pylint: disable=consider-using-with |
206 | 206 | args, stdout=subprocess.PIPE, stderr=subprocess.PIPE
|
207 | 207 | )
|
208 | 208 | # wait until server is able to answer http request
|
@@ -323,7 +323,7 @@ def start(self, app, start_timeout=2, cwd=None):
|
323 | 323 | logger.debug("start dash process with %s", args)
|
324 | 324 |
|
325 | 325 | try:
|
326 |
| - self.proc = subprocess.Popen( |
| 326 | + self.proc = subprocess.Popen( # pylint: disable=consider-using-with |
327 | 327 | args,
|
328 | 328 | stdout=subprocess.PIPE,
|
329 | 329 | stderr=subprocess.PIPE,
|
@@ -423,7 +423,7 @@ def start(self, app, start_timeout=30, cwd=None):
|
423 | 423 | logger.debug("start Dash.jl process with %s", args)
|
424 | 424 |
|
425 | 425 | try:
|
426 |
| - self.proc = subprocess.Popen( |
| 426 | + self.proc = subprocess.Popen( # pylint: disable=consider-using-with |
427 | 427 | args,
|
428 | 428 | stdout=subprocess.PIPE,
|
429 | 429 | stderr=subprocess.PIPE,
|
|
0 commit comments