testing: remove a few redundant py references
This commit is contained in:
parent
5fc7b21391
commit
bc2f20722c
|
@ -1379,8 +1379,7 @@ def test_capturing_and_logging_fundamentals(pytester: Pytester, method: str) ->
|
||||||
# here we check a fundamental feature
|
# here we check a fundamental feature
|
||||||
p = pytester.makepyfile(
|
p = pytester.makepyfile(
|
||||||
"""
|
"""
|
||||||
import sys, os
|
import sys, os, logging
|
||||||
import py, logging
|
|
||||||
from _pytest import capture
|
from _pytest import capture
|
||||||
cap = capture.MultiCapture(
|
cap = capture.MultiCapture(
|
||||||
in_=None,
|
in_=None,
|
||||||
|
|
|
@ -121,7 +121,7 @@ class TestImportPath:
|
||||||
module_c.write_text(
|
module_c.write_text(
|
||||||
dedent(
|
dedent(
|
||||||
"""
|
"""
|
||||||
import py;
|
import pluggy;
|
||||||
import otherdir.a
|
import otherdir.a
|
||||||
value = otherdir.a.result
|
value = otherdir.a.result
|
||||||
"""
|
"""
|
||||||
|
@ -131,7 +131,7 @@ class TestImportPath:
|
||||||
module_d.write_text(
|
module_d.write_text(
|
||||||
dedent(
|
dedent(
|
||||||
"""
|
"""
|
||||||
import py;
|
import pluggy;
|
||||||
from otherdir import a
|
from otherdir import a
|
||||||
value2 = a.result
|
value2 = a.result
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue