[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[automake-commit] branch master updated: test: another check for PEP-314
From: |
Karl Berry |
Subject: |
[automake-commit] branch master updated: test: another check for PEP-3147 induced by Python 3.12.1. |
Date: |
Sun, 28 Jan 2024 21:13:00 -0500 |
This is an automated email from the git hooks/post-receive script.
karl pushed a commit to branch master
in repository automake.
View the commit online:
https://git.savannah.gnu.org/gitweb/?p=automake.git;a=commitdiff;h=f1112a88d2361eb2ba5cedf49995ac75879059d9
The following commit(s) were added to refs/heads/master by this push:
new f1112a88d test: another check for PEP-3147 induced by Python 3.12.1.
f1112a88d is described below
commit f1112a88d2361eb2ba5cedf49995ac75879059d9
Author: Bogdan <bogdro_rep@gmx.us>
AuthorDate: Sun Jan 28 18:12:50 2024 -0800
test: another check for PEP-3147 induced by Python 3.12.1.
Fix for more of https://bugs.gnu.org/68119.
* t/ax/am-test-lib.sh (python_has_pep3147) <am_pep3147_tag>:
check sys.implementation.cache_tag as well as the (old)
imp.get_tag. For Python 3.12.1.
---
t/ax/am-test-lib.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/t/ax/am-test-lib.sh b/t/ax/am-test-lib.sh
index fbbb79005..d61fd6662 100644
--- a/t/ax/am-test-lib.sh
+++ b/t/ax/am-test-lib.sh
@@ -635,6 +635,10 @@ python_has_pep3147 ()
am_pep3147_tag=$($PYTHON -c 'import imp; print(imp.get_tag())') \
|| am_pep3147_tag=none
fi
+ if test "$am_pep3147_tag" = "none"; then
+ am_pep3147_tag=$($PYTHON -c 'import sys;
print(sys.implementation.cache_tag)') \
+ || am_pep3147_tag=none
+ fi
test $am_pep3147_tag != none
}
am_pep3147_tag=
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [automake-commit] branch master updated: test: another check for PEP-3147 induced by Python 3.12.1.,
Karl Berry <=