Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add a test for the module level __getattr__().
  • Loading branch information
gpshead committed May 11, 2021
commit 1129c9b4301de4faaa9101df4c0c6b868458f46b
5 changes: 5 additions & 0 deletions Lib/test/test_urlparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1050,6 +1050,11 @@ def test_Quoter_repr(self):
def test_clear_cache_for_code_coverage(self):
urllib.parse.clear_cache()

def test_urllib_parse_getattr_failure(self):
"""Test that urllib.parse.__getattr__() fails correctly."""
with self.assertRaises(AttributeError):
unused = urllib.parse.this_does_not_exist

def test_all(self):
expected = []
undocumented = {
Expand Down