This is an automated email from the ASF dual-hosted git repository.

hainenber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 10d06859b83 fix(ci): floor pyfakefs at 5.7.4 to fix Python 3.13 
pytest-cov crash (#44853)
10d06859b83 is described below

commit 10d06859b834749ce2e48698d4ef77f998bc62f1
Author: Joe Li <[email protected]>
AuthorDate: Fri Oct 2 07:08:54 2026 -0700

    fix(ci): floor pyfakefs at 5.7.4 to fix Python 3.13 pytest-cov crash 
(#44853)
    
    Co-authored-by: Claude Opus 5 <[email protected]>
---
 pyproject.toml               | 12 +++++++++++-
 requirements/development.txt |  2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index b6b9b445b67..4fb72805e15 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -319,7 +319,17 @@ development = [
     "pre-commit",
     "progress>=1.6.1,<2",
     "psutil",
-    "pyfakefs",
+    # 5.3.5 (the previously resolved version) predates pyfakefs's own Python
+    # 3.13 support: under 3.13 it leaves os.chdir patched to the fake
+    # filesystem after the `fs` fixture is undone, so the chdir back to the
+    # rootdir in pytest-cov's own teardown aborts the whole session with an
+    # INTERNALERROR. 5.6.0 added preliminary 3.13 support, which is what stops
+    # that crash, and 5.7.0 made 3.13 support official. 5.7.4 is the floor
+    # rather than 5.7.0 because it also fixes module/session-scoped fixtures
+    # under 3.13 (pyfakefs #1101), and the `fs` tests in
+    # tests/integration_tests/cli_tests.py -- the only consumers of that
+    # fixture -- run alongside session- and module-scoped fixtures.
+    "pyfakefs>=5.7.4",
     "pyinstrument>=5.1.3,<6",
     "pylint",
     "pytest<10.0.0", # cap below the next major until validated; the earlier 
<8 pin (current_app proxy timing) no longer reproduces
diff --git a/requirements/development.txt b/requirements/development.txt
index 0a78383ba8f..7d00db2a7ae 100644
--- a/requirements/development.txt
+++ b/requirements/development.txt
@@ -824,7 +824,7 @@ pydata-google-auth==1.9.0
     # via pandas-gbq
 pydruid==0.6.9
     # via apache-superset
-pyfakefs==5.3.5
+pyfakefs==6.2.0
     # via apache-superset
 pygeohash==3.2.2
     # via

Reply via email to