Merge pull request #9110 from remitamine/parse_duration
[ytdl] / test / test_utils.py
index 0f36bb9f0a40d665ed88220d4f8105710570aaf9..e16a6761b7e9a70589c6da7b48c9f54e2c03e734 100644 (file)
@@ -413,6 +413,7 @@ class TestUtil(unittest.TestCase):
         self.assertEqual(parse_duration('01:02:03:04'), 93784)
         self.assertEqual(parse_duration('1 hour 3 minutes'), 3780)
         self.assertEqual(parse_duration('87 Min.'), 5220)
+        self.assertEqual(parse_duration('PT1H0.040S'), 3600.04)
 
     def test_fix_xml_ampersands(self):
         self.assertEqual(