summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-12-14 22:43:43 (GMT)
committerGitHub <noreply@github.com>2020-12-14 22:43:43 (GMT)
commit33cbb04986d0dabb9c542edc52bb4ea6106d3a81 (patch)
tree05c1054839b07b835f57da2d6a984aa85273d716 /Lib/test/test_httplib.py
parentdbb00062dc3afb12c41c87564e6faefe60766b01 (diff)
downloadcpython-33cbb04986d0dabb9c542edc52bb4ea6106d3a81.zip
cpython-33cbb04986d0dabb9c542edc52bb4ea6106d3a81.tar.gz
cpython-33cbb04986d0dabb9c542edc52bb4ea6106d3a81.tar.bz2
bpo-40084: Enum - dir() includes member attributes (GH-19219)
(cherry picked from commit 68526fe258da8c01196fd7cf48e8e5f1280bf8fd) Co-authored-by: Angelin BOOZ <9497359+lem2clide@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_httplib.py')
-rw-r--r--Lib/test/test_httplib.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Lib/test/test_httplib.py b/Lib/test/test_httplib.py
index ed12589..28943f0 100644
--- a/Lib/test/test_httplib.py
+++ b/Lib/test/test_httplib.py
@@ -1,5 +1,5 @@
import errno
-from http import client
+from http import client, HTTPStatus
import io
import itertools
import os
@@ -516,6 +516,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