File reproducible.patch of Package python-pytest

diff --git a/src/_pytest/config/__init__.py b/src/_pytest/config/__init__.py
index 0fc8955..063ec91 100644
--- a/src/_pytest/config/__init__.py
+++ b/src/_pytest/config/__init__.py
@@ -382,7 +382,7 @@ class PytestPluginManager(PluginManager):
         self._getconftestmodules(anchor)
         # let's also consider test* subdirs
         if anchor.check(dir=1):
-            for x in anchor.listdir("test*"):
+            for x in sorted(anchor.listdir("test*")):
                 if x.check(dir=1):
                     self._getconftestmodules(x)
 
diff --git a/src/_pytest/main.py b/src/_pytest/main.py
index 75f5156..8c59f35 100644
--- a/src/_pytest/main.py
+++ b/src/_pytest/main.py
@@ -264,7 +264,7 @@ def _in_venv(path):
         "Activate.bat",
         "Activate.ps1",
     )
-    return any([fname.basename in activates for fname in bindir.listdir()])
+    return any([fname.basename in activates for fname in sorted(bindir.listdir())])
 
 
 def pytest_ignore_collect(path, config):