Factor out py.std

This commit is contained in:
Anthony Sottile
2018-07-05 15:35:39 -07:00
parent 8d94fca964
commit 78fcf725cf
5 changed files with 29 additions and 23 deletions

View File

@@ -1,4 +1,5 @@
import py
import pprint
import pytest
from xdist.workermanage import WorkerController, unserialize_report
from xdist.remote import serialize_report
@@ -14,7 +15,7 @@ def check_marshallable(d):
try:
marshal.dumps(d)
except ValueError:
py.std.pprint.pprint(d)
pprint.pprint(d)
raise ValueError("not marshallable")
@@ -344,7 +345,7 @@ class TestWorkerInteractor:
for data in worker.slp.channel:
worker.slp.process_from_remote(data)
worker.slp.process_from_remote(worker.slp.ENDMARK)
py.std.pprint.pprint(hookrec.hookrecorder.calls)
pprint.pprint(hookrec.hookrecorder.calls)
hookrec.hookrecorder.contains([
("pytest_collectstart", "collector.fspath == aaa"),
("pytest_pycollect_makeitem", "name == 'test_func'"),