gh-95149: Enhance http.HTTPStatus with properties that indicate the HTTP status category (GH-95453)

This commit is contained in:
Alexandru Mărășteanu 2022-08-30 21:11:44 +03:00 committed by GitHub
parent 13c309f110
commit 0ed778835d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 93 additions and 1 deletions

View file

@ -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