Skip to content

Commit

Permalink
Fix minor linting issues
Browse files Browse the repository at this point in the history
The type comparison is intentional in the tests.
  • Loading branch information
pgjones committed Aug 12, 2023
1 parent 19fc3ec commit d1905b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_datastructures.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def create_instance(module=None):
d = create_instance()
s = pickle.dumps(d, protocol)
ud = pickle.loads(s)
assert type(ud) == type(d)
assert type(ud) == type(d) # noqa: E721
assert ud == d
alternative = pickle.dumps(create_instance("werkzeug"), protocol)
assert pickle.loads(alternative) == d
Expand Down
2 changes: 1 addition & 1 deletion tests/test_routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ def test_uuid_converter():
m = r.Map([r.Rule("/a/<uuid:a_uuid>", endpoint="a")])
a = m.bind("example.org", "/")
route, kwargs = a.match("/a/a8098c1a-f86e-11da-bd1a-00112444be1e")
assert type(kwargs["a_uuid"]) == uuid.UUID
assert type(kwargs["a_uuid"]) == uuid.UUID # noqa: E721


def test_converter_with_tuples():
Expand Down

0 comments on commit d1905b0

Please sign in to comment.