From bc2f20722c75fe1ca4370c003e2ab34b610456b9 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Sat, 16 Oct 2021 02:50:05 +0300 Subject: [PATCH] testing: remove a few redundant py references --- testing/test_capture.py | 3 +-- testing/test_pathlib.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/testing/test_capture.py b/testing/test_capture.py index 4d89f0b9e..1bc1f2f8d 100644 --- a/testing/test_capture.py +++ b/testing/test_capture.py @@ -1379,8 +1379,7 @@ def test_capturing_and_logging_fundamentals(pytester: Pytester, method: str) -> # here we check a fundamental feature p = pytester.makepyfile( """ - import sys, os - import py, logging + import sys, os, logging from _pytest import capture cap = capture.MultiCapture( in_=None, diff --git a/testing/test_pathlib.py b/testing/test_pathlib.py index 2cd1e6355..5eb153e84 100644 --- a/testing/test_pathlib.py +++ b/testing/test_pathlib.py @@ -121,7 +121,7 @@ class TestImportPath: module_c.write_text( dedent( """ - import py; + import pluggy; import otherdir.a value = otherdir.a.result """ @@ -131,7 +131,7 @@ class TestImportPath: module_d.write_text( dedent( """ - import py; + import pluggy; from otherdir import a value2 = a.result """