Skip to content
Myr

fix flake8 bugbear findings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 6d266f6 · Browse files · 1 file+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−4 removed

  • tests:+4 added−4 removed

1 file+4 added−4 removed

modified:tests/test_basic.py+4 added-4 removed
429 unmodified lines
430 with client:431 client.get("/")432 s = flask.session433 assert s["t"] == (1, 2, 3)434 assert type(s["b"]) == bytes434 assert type(s["b"]) is bytes435 assert s["b"] == b"\xff"436 assert type(s["m"]) == Markup436 assert type(s["m"]) is Markup437 assert s["m"] == Markup("<html>")438 assert s["u"] == the_uuid439 assert s["d"] == now440 assert s["t_tag"] == {" t": "not-a-tuple"}
318 unmodified lines
759 app.testing = False760761 @app.teardown_request762 def teardown_request1(exc):763 assert type(exc) == ZeroDivisionError763 assert type(exc) is ZeroDivisionError764 called.append(True)765 # This raises a new error and blows away sys.exc_info(), so we can766 # test that all teardown_requests get passed the same original767 # exception.
3 unmodified lines
771 pass772773 @app.teardown_request774 def teardown_request2(exc):775 assert type(exc) == ZeroDivisionError775 assert type(exc) is ZeroDivisionError776 called.append(True)777 # This raises a new error and blows away sys.exc_info(), so we can778 # test that all teardown_requests get passed the same original779 # exception.
1109 unmodified lines