summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httplib.py
diff options
context:
space:
mode:
authorAngelin BOOZ <9497359+lem2clide@users.noreply.github.com>2020-09-21 13:11:06 (GMT)
committerGitHub <noreply@github.com>2020-09-21 13:11:06 (GMT)
commit68526fe258da8c01196fd7cf48e8e5f1280bf8fd (patch)
tree45b3930335dca97d5b613100e12b0feaa7e218ed /Lib/test/test_httplib.py
parent1b328ea9a7d15de4a8c9d0eb8aee94f6c75c1b46 (diff)
downloadcpython-68526fe258da8c01196fd7cf48e8e5f1280bf8fd.zip
cpython-68526fe258da8c01196fd7cf48e8e5f1280bf8fd.tar.gz
cpython-68526fe258da8c01196fd7cf48e8e5f1280bf8fd.tar.bz2
bpo-40084: Enum - dir() includes member attributes (GH-19219)
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 a3f268b..4abff60 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
@@ -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