Skip to content

Commit

Permalink
fix flake8 bugbear findings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Aug 16, 2023
1 parent 6d266f6 commit 826514b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,9 +431,9 @@ def dump_session_contents():
client.get("/")
s = flask.session
assert s["t"] == (1, 2, 3)
assert type(s["b"]) == bytes
assert type(s["b"]) is bytes
assert s["b"] == b"\xff"
assert type(s["m"]) == Markup
assert type(s["m"]) is Markup
assert s["m"] == Markup("<html>")
assert s["u"] == the_uuid
assert s["d"] == now
Expand Down Expand Up @@ -760,7 +760,7 @@ def test_teardown_request_handler_error(app, client):

@app.teardown_request
def teardown_request1(exc):
assert type(exc) == ZeroDivisionError
assert type(exc) is ZeroDivisionError
called.append(True)
# This raises a new error and blows away sys.exc_info(), so we can
# test that all teardown_requests get passed the same original
Expand All @@ -772,7 +772,7 @@ def teardown_request1(exc):

@app.teardown_request
def teardown_request2(exc):
assert type(exc) == ZeroDivisionError
assert type(exc) is ZeroDivisionError
called.append(True)
# This raises a new error and blows away sys.exc_info(), so we can
# test that all teardown_requests get passed the same original
Expand Down

0 comments on commit 826514b

Please sign in to comment.