summaryrefslogtreecommitdiff
path: root/dev-python/pytest/files/pytest-7.1.2-py311.patch
blob: ecae07b9ce242cd33294e3cd3b33d9a0ab9c501f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 2f8ae29c173ea8335a1e0cc7027a76032429e8f9 Mon Sep 17 00:00:00 2001
From: "github-actions[bot]"
 <41898282+github-actions[bot]@users.noreply.github.com>
Date: Mon, 9 May 2022 13:38:22 +0000
Subject: [PATCH] [7.1.x] testing: fix Path.rglob("") failures in Python 3.11b1
 (#9934)

Co-authored-by: Ran Benita <ran@unusedvar.com>
---
 testing/test_conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testing/test_conftest.py b/testing/test_conftest.py
index 680482045..d2bf860c6 100644
--- a/testing/test_conftest.py
+++ b/testing/test_conftest.py
@@ -553,7 +553,7 @@ class TestConftestVisibility:
             )
         )
         print("created directory structure:")
-        for x in pytester.path.rglob(""):
+        for x in pytester.path.glob("**/"):
             print("   " + str(x.relative_to(pytester.path)))
 
         return {"runner": runner, "package": package, "swc": swc, "snc": snc}
-- 
2.35.1