From 851a318d4579d98270971a3e944b1e69b3aabed7 Mon Sep 17 00:00:00 2001 From: Eric Hambro Date: Thu, 16 Nov 2023 16:12:08 -0800 Subject: [PATCH] Ignore a flake warning about the warning function, fix a flake complaint about a test. --- .flake8 | 2 +- nle/tests/test_populate_db.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 5d8301132..d9b7ea952 100644 --- a/.flake8 +++ b/.flake8 @@ -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 diff --git a/nle/tests/test_populate_db.py b/nle/tests/test_populate_db.py index d408c57b6..fefc64a05 100644 --- a/nle/tests/test_populate_db.py +++ b/nle/tests/test_populate_db.py @@ -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