Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Ignore a flake warning about the warning function, fix a flake complaint
Browse files Browse the repository at this point in the history
about a test.
  • Loading branch information
cdmatters committed Nov 17, 2023
1 parent 458acee commit 851a318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
ignore = E203, E266, E501, E731, W503, C901, B008, B905
ignore = E203, E266, E501, E731, W503, C901, B008, B905, B028
# 80 to use as a soft test
max-line-length = 80
max-complexity = 18
Expand Down
2 changes: 1 addition & 1 deletion nle/tests/test_populate_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_dump_altorg_db(self, conn): # NOQA: F811
offset = actual_gameid_offset - expected_gameid_offset
for actual, expected in zip(result, dump):
expected[TTYRECS_MTIME_IDX] = actual[TTYRECS_MTIME_IDX]
assert type(actual[TTYRECS_MTIME_IDX]) == float
assert isinstance(actual[TTYRECS_MTIME_IDX]), float)
expected[TTYRECS_GAMEID_IDX] += offset
expected[GAMES_GAMEID_IDX] += offset
expected[DATASETS_GAMEID_IDX] += offset
Expand Down

0 comments on commit 851a318

Please sign in to comment.