未验证 提交 8a4e67a1 编写于 作者: zhouweiwei2014's avatar zhouweiwei2014 提交者: GitHub

fux bug of UT test_version (#49349)

上级 0531a48b
......@@ -34,12 +34,6 @@ class VersionTest(unittest.TestCase):
# check version format
if fluid_version.istaged:
self.assertEqual(fluid_version.major, 0)
self.assertEqual(fluid_version.minor, 0)
self.assertEqual(fluid_version.patch, "0")
self.assertEqual(fluid_version.rc, 0)
self.assertEqual(fluid_version.full_version, "0.0.0")
else:
self.assertTrue(re.match(self._major_regex, fluid_version.major))
self.assertTrue(re.match(self._minor_regex, fluid_version.minor))
self.assertTrue(re.match(self._patch_regex, fluid_version.patch))
......@@ -47,3 +41,13 @@ class VersionTest(unittest.TestCase):
self.assertTrue(
re.match(self._version_regex, fluid_version.full_version)
)
else:
self.assertEqual(fluid_version.major, "0")
self.assertEqual(fluid_version.minor, "0")
self.assertEqual(fluid_version.patch, "0")
self.assertEqual(fluid_version.rc, "0")
self.assertEqual(fluid_version.full_version, "0.0.0")
if __name__ == '__main__':
unittest.main()
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册