Skip to content

Commit bc2f207

Browse files
committed
testing: remove a few redundant py references
1 parent 5fc7b21 commit bc2f207

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

testing/test_capture.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,8 +1379,7 @@ def test_capturing_and_logging_fundamentals(pytester: Pytester, method: str) ->
13791379
# here we check a fundamental feature
13801380
p = pytester.makepyfile(
13811381
"""
1382-
import sys, os
1383-
import py, logging
1382+
import sys, os, logging
13841383
from _pytest import capture
13851384
cap = capture.MultiCapture(
13861385
in_=None,

testing/test_pathlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def setuptestfs(self, path: Path) -> None:
121121
module_c.write_text(
122122
dedent(
123123
"""
124-
import py;
124+
import pluggy;
125125
import otherdir.a
126126
value = otherdir.a.result
127127
"""
@@ -131,7 +131,7 @@ def setuptestfs(self, path: Path) -> None:
131131
module_d.write_text(
132132
dedent(
133133
"""
134-
import py;
134+
import pluggy;
135135
from otherdir import a
136136
value2 = a.result
137137
"""

0 commit comments

Comments
 (0)