Skip to content

Commit

Permalink
Fix lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonspeed committed Feb 27, 2024
1 parent 4193f91 commit 118f121
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion eliot/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
Utilities that don't go anywhere else.
"""

import sys
from types import ModuleType


Expand Down
2 changes: 1 addition & 1 deletion eliot/_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class ValidationError(Exception):

# Types that can be encoded to JSON:
_JSON_TYPES = {type(None), int, float, str, list, dict, bytes, bool}
_JSON_TYPES |= set((int, ))
_JSON_TYPES |= set((int,))

RESERVED_FIELDS = (TASK_LEVEL_FIELD, TASK_UUID_FIELD, TIMESTAMP_FIELD)

Expand Down
2 changes: 1 addition & 1 deletion eliot/tests/test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pickle
import time
from unittest import TestCase, skipIf
from unittest import TestCase
from unittest.mock import patch
from threading import Thread

Expand Down
8 changes: 2 additions & 6 deletions eliot/tests/test_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,7 @@ def test_parse_into_tasks(
completed_tasks, parser = parser.add(message)
all_tasks.extend(completed_tasks)

self.assertCountEqual(
all_tasks, [parse_to_task(msgs) for msgs in all_messages]
)
self.assertCountEqual(all_tasks, [parse_to_task(msgs) for msgs in all_messages])

@given(structure_and_messages=STRUCTURES_WITH_MESSAGES)
def test_incomplete_tasks(self, structure_and_messages):
Expand Down Expand Up @@ -295,9 +293,7 @@ def test_parse_stream(
[m for m in chain(*zip_longest(*all_messages)) if m is not None]
)
)
self.assertCountEqual(
all_tasks, [parse_to_task(msgs) for msgs in all_messages]
)
self.assertCountEqual(all_tasks, [parse_to_task(msgs) for msgs in all_messages])


class BackwardsCompatibility(TestCase):
Expand Down

0 comments on commit 118f121

Please sign in to comment.