Skip to content

Commit 66e08b0

Browse files
committed
python: add test for sysconfig.get_platform()
Fix a TODO, which was fixed in msys2/MSYS2-packages@08eb9bd
1 parent 447f4fe commit 66e08b0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

python/test.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ python --version
99

1010
if [[ "$MSYSTEM" == "MSYS" ]]; then
1111
# Make sure python does not give away that we are not cygwin
12-
platform="$(python -c "import sys; print(sys.platform)")"
13-
[[ "$platform" == "cygwin" ]] || (echo "wrong platform: $platform"; false)
14-
# TODO: sysconfig.get_platform() depends on uname
12+
sys_platform="$(python -c "import sys; print(sys.platform)")"
13+
[[ "$sys_platform" == "cygwin" ]] || (echo "wrong platform: $sys_platform"; false)
14+
sysconfig_platform="$(python -c "import sysconfig; print(sysconfig.get_platform())")"
15+
[[ "$sysconfig_platform" == "cygwin-$MSYSTEM_CARCH" ]] || (echo "wrong platform: $sysconfig_platform"; false)
1516
fi

0 commit comments

Comments
 (0)