Merge pull request #306 from asottile/factor_out_py_std

Factor out py.std
This commit is contained in:
Bruno Oliveira
2018-07-06 22:21:56 -03:00
committed by GitHub
5 changed files with 29 additions and 23 deletions

View File

@@ -10,6 +10,7 @@
import py
import pytest
import sys
import time
import execnet
@@ -228,7 +229,7 @@ class StatRecorder(object):
changed = self.check()
if changed:
return
py.std.time.sleep(checkinterval)
time.sleep(checkinterval)
def check(self, removepycfiles=True): # noqa, too complex
changed = False

View File

@@ -1,6 +1,7 @@
import fnmatch
import os
import re
import threading
import py
import pytest
@@ -32,7 +33,7 @@ class NodeManager(object):
def __init__(self, config, specs=None, defaultchdir="pyexecnetcache"):
self.config = config
self._nodesready = py.std.threading.Event()
self._nodesready = threading.Event()
self.trace = self.config.trace.get("nodemanager")
self.group = execnet.Group()
if specs is None: