diff options
author | Paul Ganssle <1377457+pganssle@users.noreply.github.com> | 2022-12-03 15:07:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-03 15:07:04 -0500 |
commit | b04edc08aa3559063b3b097f437941d8c4b84aba (patch) | |
tree | 174b2ef9fbd215ad01d123df9034d138a9de3f57 /tests/test_isoparser.py | |
parent | e8151c15172620d8d55e410f9297564368c886bf (diff) | |
parent | c73a9b183ff0aa2ab2ac8c7c52b61ac6081b6eed (diff) | |
download | dateutil-git-master.tar.gz |
Add pre commit
Diffstat (limited to 'tests/test_isoparser.py')
-rw-r--r-- | tests/test_isoparser.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test_isoparser.py b/tests/test_isoparser.py index 35899ab..c33881f 100644 --- a/tests/test_isoparser.py +++ b/tests/test_isoparser.py @@ -80,10 +80,10 @@ def _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset, if not fmt.endswith('%f'): # pragma: nocover raise ValueError('Time format has no microseconds!') - if microsecond_precision != 6: - dtstr = dtstr[:-(6 - microsecond_precision)] - elif microsecond_precision > 6: # pragma: nocover - raise ValueError('Precision must be 1-6') + if microsecond_precision != 6: + dtstr = dtstr[: -(6 - microsecond_precision)] + elif microsecond_precision > 6: # pragma: nocover + raise ValueError("Precision must be 1-6") dtstr += offset_str |