Content-Length: 1381 | pFad | http://github.com/python/cpython/pull/128545.patch
thub.com
From 6d02ccafafe50510eac49195bc4b8bdb1ceda721 Mon Sep 17 00:00:00 2001
From: Hood Chatham
Date: Mon, 16 Dec 2024 17:08:20 +0100
Subject: [PATCH] gh-127146: Fix test_sysconfidata_json in Emscripten
The prefix is different when we build from when we run the test.
---
Lib/test/test_sysconfig.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index ce504dc21af85f..ecf0bbc36e1b60 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -14,6 +14,7 @@
is_android,
is_apple_mobile,
is_wasi,
+ is_emscripten,
PythonSymlink,
requires_subprocess,
)
@@ -651,9 +652,13 @@ def test_sysconfigdata_json(self):
system_config_vars = get_config_vars()
# Ignore keys in the check
- for key in ('projectbase', 'srcdir'):
- json_config_vars.pop(key)
- system_config_vars.pop(key)
+ ignore_keys = ('projectbase', 'srcdir')
+ if is_emscripten:
+ ignore_keys += ("exec_prefix", "installed_base", "installed_platbase", "prefix", "platbase", "userbase")
+
+ for key in ignore_keys:
+ json_config_vars.pop(key, None)
+ system_config_vars.pop(key, None)
self.assertEqual(system_config_vars, json_config_vars)
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/python/cpython/pull/128545.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy