Merge pull request #306 from asottile/factor_out_py_std
Factor out py.std
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user