mirror of
https://github.com/python/cpython.git
synced 2025-08-24 18:55:00 +00:00
gh-95149: Enhance http.HTTPStatus
with properties that indicate the HTTP status category (GH-95453)
This commit is contained in:
parent
13c309f110
commit
0ed778835d
5 changed files with 93 additions and 1 deletions
|
@ -1887,7 +1887,7 @@ def _test_simple_enum(checked_enum, simple_enum):
|
|||
else:
|
||||
checked_value = checked_dict[key]
|
||||
simple_value = simple_dict[key]
|
||||
if callable(checked_value):
|
||||
if callable(checked_value) or isinstance(checked_value, bltns.property):
|
||||
continue
|
||||
if key == '__doc__':
|
||||
# remove all spaces/tabs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue