mirror of
https://github.com/python/cpython.git
synced 2025-10-06 15:11:58 +00:00
bpo-40084: Enum - dir() includes member attributes (GH-19219)
This commit is contained in:
parent
1b328ea9a7
commit
68526fe258
5 changed files with 20 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
import errno
|
||||
from http import client
|
||||
from http import client, HTTPStatus
|
||||
import io
|
||||
import itertools
|
||||
import os
|
||||
|
@ -519,6 +519,10 @@ class TransferEncodingTest(TestCase):
|
|||
|
||||
|
||||
class BasicTest(TestCase):
|
||||
def test_dir_with_added_behavior_on_status(self):
|
||||
# see issue40084
|
||||
self.assertTrue({'description', 'name', 'phrase', 'value'} <= set(dir(HTTPStatus(404))))
|
||||
|
||||
def test_status_lines(self):
|
||||
# Test HTTP status lines
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue