Skip to content

Commit 90bf421

Browse files
committed
Use _simple_enum to equal HTTPStatus
1 parent 0273b0d commit 90bf421

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_httplib.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,8 @@ def test_dir_with_added_behavior_on_status(self):
525525
self.assertTrue({'description', 'name', 'phrase', 'value'} <= set(dir(HTTPStatus(404))))
526526

527527
def test_simple_httpstatus(self):
528-
class CheckedHTTPStatus(enum.IntEnum):
528+
@enum._simple_enum(enum.IntEnum)
529+
class CheckedHTTPStatus:
529530
"""HTTP status codes and reason phrases
530531
531532
Status codes from the following RFCs are all observed:

0 commit comments

Comments
 (0)