mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-27 03:37:33 +00:00
Make version_from_string() more tolerant
This commit is contained in:
@@ -54,3 +54,7 @@ class VersionsTest(unittest.TestCase):
|
||||
def test_version_conv_11(self):
|
||||
l, s = ('1', '1', '0', 'dev', '0'), '1.1.0dev0'
|
||||
self.assertEqual(version_to_string(l), s)
|
||||
|
||||
def test_version_conv_12(self):
|
||||
l, s = (1, 1, 0, 'dev', 0), '1_1_0_dev_0'
|
||||
self.assertEqual(l, version_from_string(s))
|
||||
|
||||
Reference in New Issue
Block a user