From 72b77e8bf4b4ccc34b59f66842c5ed132b3ce95e Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Wed, 22 Sep 2021 11:59:04 +0800 Subject: [PATCH] fix test script --- test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index cfa668c..0afea45 100644 --- a/test.py +++ b/test.py @@ -16,7 +16,8 @@ PACKAGE_MAP = { class TestActionSuite(unittest.TestCase): def test_check_python_version(self): self.assertEqual( - ".".join(map(str, sys.version_info[:2])), os.getenv("PYTHON_VERSION") + ".".join(map(str, sys.version_info[:2])), + ".".join(os.getenv("PYTHON_VERSION").split(".")[:2]), ) def test_check_dependencies(self):