Skip to content

Commit

Permalink
Fixed new issues reported by new flake8 7.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <maiera@de.ibm.com>
  • Loading branch information
andy-maier committed Jun 16, 2024
1 parent 0018cb1 commit a8fe373
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions changes/noissue.1.cleanup.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed new issues reported by new flake8 7.0.0.
4 changes: 2 additions & 2 deletions tests/unit/zhmcclient/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
((3001, 1, 1, 8, 0, 0, 0), TS_3001_LIMIT + 1000),
((MAXYEAR - 1, 12, 31, 0, 0, 0, 0), TS_MAX + 1 - DAY_MS - 365 * DAY_MS),
((MAXYEAR, 12, 30, 0, 0, 0, 0), TS_MAX + 1 - 2 * DAY_MS),
((MAXYEAR, 12, 30, 23, 59, 59, 0), TS_MAX + 1 - 2 * DAY_MS + \
23 * HOUR_MS + 59 * MIN_MS + 59 * SEC_MS),
((MAXYEAR, 12, 30, 23, 59, 59, 0),
TS_MAX + 1 - 2 * DAY_MS + 23 * HOUR_MS + 59 * MIN_MS + 59 * SEC_MS),

# The following testcases would be in range but are too close to the max
# for pytz due to an implementation limitation: pytz.localize() checks the
Expand Down
2 changes: 1 addition & 1 deletion zhmcclient_mock/_urihandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5390,7 +5390,7 @@ def post(method, hmc, uri, uri_parms, body, logon_required,

(r'/api/partitions/([^/]+)/hbas(?:\?(.*))?', HbasHandler),
(r'/api/partitions/([^/]+)/hbas/([^?/]+)(?:\?(.*))?', HbaHandler),
(r'/api/partitions/([^/]+)/hbas/([^/]+)/operations/'\
(r'/api/partitions/([^/]+)/hbas/([^/]+)/operations/'
'reassign-storage-adapter-port', HbaReassignPortHandler),

(r'/api/partitions/([^/]+)/nics(?:\?(.*))?', NicsHandler),
Expand Down

0 comments on commit a8fe373

Please sign in to comment.