Skip to content

Commit 453e55a

Browse files
committed
Standardize on raise AssertionError(...).
1 parent 9e5b91b commit 453e55a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

experiments/optimization/parse_frames.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def parse_frame(data, count, mask, extensions):
3333
except StopIteration:
3434
pass
3535
else:
36-
assert False, "parser should return frame"
36+
raise AssertionError("parser should return frame")
3737
reader.feed_eof()
3838
assert reader.at_eof(), "parser should consume all data"
3939

experiments/optimization/parse_handshake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def parse_handshake(handshake):
7171
except StopIteration:
7272
pass
7373
else:
74-
assert False, "parser should return request"
74+
raise AssertionError("parser should return request")
7575
reader.feed_eof()
7676
assert reader.at_eof(), "parser should consume all data"
7777

0 commit comments

Comments
 (0)