From 3dbd6bb6848cc70c18fe324554126429ab5c0002 Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 6 Nov 2024 11:12:19 +1100 Subject: [PATCH] tools/ci.sh: Enable unittest tests. Signed-off-by: Damien George --- .../unittest/tests/{test_exception.py => exception.py} | 2 ++ tools/ci.sh | 2 ++ 2 files changed, 4 insertions(+) rename python-stdlib/unittest/tests/{test_exception.py => exception.py} (66%) diff --git a/python-stdlib/unittest/tests/test_exception.py b/python-stdlib/unittest/tests/exception.py similarity index 66% rename from python-stdlib/unittest/tests/test_exception.py rename to python-stdlib/unittest/tests/exception.py index 470ffdcc2..0e828e226 100644 --- a/python-stdlib/unittest/tests/test_exception.py +++ b/python-stdlib/unittest/tests/exception.py @@ -1,3 +1,5 @@ +# This makes unittest return an error code, so is not named "test_xxx.py". + import unittest diff --git a/tools/ci.sh b/tools/ci.sh index 07b27d13c..a5fcdf22e 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -63,6 +63,7 @@ function ci_package_tests_run { python-stdlib/os-path/test_path.py \ python-stdlib/pickle/test_pickle.py \ python-stdlib/string/test_translate.py \ + python-stdlib/unittest/tests/exception.py \ unix-ffi/gettext/test_gettext.py \ unix-ffi/pwd/test_getpwnam.py \ unix-ffi/re/test_re.py \ @@ -90,6 +91,7 @@ function ci_package_tests_run { python-stdlib/shutil \ python-stdlib/tempfile \ python-stdlib/time \ + python-stdlib/unittest/tests \ python-stdlib/unittest-discover/tests \ ; do (cd $path && $MICROPYTHON -m unittest)