summaryrefslogtreecommitdiff
path: root/tests/test_isoparser.py
diff options
context:
space:
mode:
authorPaul Ganssle <1377457+pganssle@users.noreply.github.com>2022-12-03 15:07:04 -0500
committerGitHub <noreply@github.com>2022-12-03 15:07:04 -0500
commitb04edc08aa3559063b3b097f437941d8c4b84aba (patch)
tree174b2ef9fbd215ad01d123df9034d138a9de3f57 /tests/test_isoparser.py
parente8151c15172620d8d55e410f9297564368c886bf (diff)
parentc73a9b183ff0aa2ab2ac8c7c52b61ac6081b6eed (diff)
downloaddateutil-git-master.tar.gz
Merge pull request #1248 from pganssle/add-pre-commitHEADmaster
Add pre commit
Diffstat (limited to 'tests/test_isoparser.py')
-rw-r--r--tests/test_isoparser.py8
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