Compare c496b4f ... +2 ... 62cddee

Showing 2 of 3 files from the diff.

@@ -354,6 +354,9 @@
Loading
354 354
                if (has_sep and pos < len_str and
355 355
                        timestr[pos:pos + 1] == self._TIME_SEP):
356 356
                    pos += 1
357 +
                elif pos > len_str:
358 +
                    raise ValueError(
359 +
                        "Must specify 2-digit hours, minutes and seconds")
357 360
358 361
            if comp == 3:
359 362
                # Fraction of a second

@@ -41,6 +41,7 @@
Loading
41 41
42 42
    return out
43 43
44 +
44 45
FULL_TZOFFSETS = _generate_tzoffsets(False)
45 46
FULL_TZOFFSETS_AWARE = [x for x in FULL_TZOFFSETS if x[1]]
46 47
TZOFFSETS = _generate_tzoffsets(True)
@@ -252,6 +253,8 @@
Loading
252 253
    ('20120411T03:30+1234567', ValueError),     # Time zone too long
253 254
    ('20120411T03:30-25:40', ValueError),       # Time zone invalid
254 255
    ('2012-1a', ValueError),                    # Invalid month
256 +
    ('20120411T03:3', ValueError),              # HH:M is invalid
257 +
    ('20120411T03:30:1', ValueError),           # HH:MM:S is invalid
255 258
    ('20120411T03:30+00:60', ValueError),       # Time zone invalid minutes
256 259
    ('20120411T03:30+00:61', ValueError),       # Time zone invalid minutes
257 260
    ('20120411T033030.123456012:00',            # No sign in time zone
@@ -486,7 +489,9 @@
Loading
486 489
    ('1430:15', ValueError),                    # Inconsistent separator use
487 490
    ('25', ValueError),                         # Invalid hours
488 491
    ('25:15', ValueError),                      # Invalid hours
492 +
    ('12:3', ValueError),                       # Minutes too short
489 493
    ('14:60', ValueError),                      # Invalid minutes
494 +
    ('14:59:4', ValueError),                    # Seconds too short
490 495
    ('14:59:61', ValueError),                   # Invalid seconds
491 496
    ('14:30:15.34468305:00', ValueError),       # No sign in time zone
492 497
    ('14:30:15+', ValueError),                  # Time zone too short

Learn more Showing 32 files with coverage changes found.

Changes in dateutil/zoneinfo/rebuild.py
+11
+28
Loading file...
Changes in dateutil/test/test_easter.py
+19
Loading file...
Changes in dateutil/test/test_imports.py
+104
Loading file...
Changes in dateutil/test/test_isoparser.py
+219
Loading file...
Changes in dateutil/zoneinfo/__init__.py
+45
+9
Loading file...
Changes in dateutil/tz/tz.py
+733
+70
Loading file...
Changes in dateutil/test/conftest.py
+14
+6
Loading file...
Changes in dateutil/tz/win.py
+138
+15
Loading file...
Changes in dateutil/utils.py
+14
Loading file...
Changes in dateutil/tz/_factories.py
+49
Loading file...
Changes in dateutil/rrule.py
+927
+53
Loading file...
Changes in dateutil/parser/_parser.py
+782
+33
Loading file...
Changes in dateutil/test/test_internals.py
+57
Loading file...
Changes in dateutil/test/test_import_star.py
+22
Loading file...
Changes in dateutil/parser/isoparser.py
+177
Loading file...
Changes in dateutil/_common.py
+24
+1
Loading file...
Changes in dateutil/relativedelta.py
+241
Loading file...
Changes in dateutil/parser/__init__.py
+33
Loading file...
Changes in dateutil/__init__.py
+3
+2
Loading file...
Changes in dateutil/test/test_tz.py
+1406
+19
Loading file...
Changes in dateutil/easter.py
+27
Loading file...
Changes in dateutil/test/property/test_tz_prop.py
+22
Loading file...
Changes in dateutil/test/test_relativedelta.py
+329
+2
Loading file...
Changes in dateutil/tz/_common.py
+147
+14
Loading file...
Changes in dateutil/test/test_utils.py
+34
Loading file...
Changes in dateutil/test/test_parser.py
+425
+51
Loading file...
Changes in dateutil/test/property/test_isoparse_prop.py
+16
Loading file...
Changes in dateutil/test/test_rrule.py
+1338
+5
Loading file...
Changes in dateutil/tzwin.py
+1
Loading file...
Changes in dateutil/test/_common.py
+107
+10
Loading file...
Changes in dateutil/tz/__init__.py
+4
Loading file...
Changes in dateutil/test/property/test_parser_prop.py
+15
Loading file...
Files Coverage
dateutil +<.01% 95.93%
Project Totals (32 files) 95.93%
Loading