Fix lint
This commit is contained in:
@@ -1065,7 +1065,7 @@ class Testdir(object):
|
|||||||
popen = self.popen(
|
popen = self.popen(
|
||||||
cmdargs, stdout=f1, stderr=f2, close_fds=(sys.platform != "win32")
|
cmdargs, stdout=f1, stderr=f2, close_fds=(sys.platform != "win32")
|
||||||
)
|
)
|
||||||
timeout = kwargs.get('timeout')
|
timeout = kwargs.get("timeout")
|
||||||
if timeout is None:
|
if timeout is None:
|
||||||
ret = popen.wait()
|
ret = popen.wait()
|
||||||
elif six.PY3:
|
elif six.PY3:
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ from __future__ import absolute_import, division, print_function
|
|||||||
import os
|
import os
|
||||||
import py.path
|
import py.path
|
||||||
import pytest
|
import pytest
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
import _pytest.pytester as pytester
|
import _pytest.pytester as pytester
|
||||||
from _pytest.pytester import HookRecorder
|
from _pytest.pytester import HookRecorder
|
||||||
@@ -413,7 +412,7 @@ def test_testdir_run_timeout_expires(testdir):
|
|||||||
testfile = testdir.makepyfile(
|
testfile = testdir.makepyfile(
|
||||||
"""
|
"""
|
||||||
import time
|
import time
|
||||||
|
|
||||||
def test_timeout():
|
def test_timeout():
|
||||||
time.sleep(10)"""
|
time.sleep(10)"""
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user