summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_util.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/packaging/tests/test_util.py')
-rw-r--r--Lib/packaging/tests/test_util.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/Lib/packaging/tests/test_util.py b/Lib/packaging/tests/test_util.py
index 9b6498b..e3ccfd5 100644
--- a/Lib/packaging/tests/test_util.py
+++ b/Lib/packaging/tests/test_util.py
@@ -700,14 +700,8 @@ class GlobTestCase(GlobTestCaseBase):
'{a**a,babar}',
'{bob,b**z}',
]
- msg = "%r is not supposed to be a valid pattern"
for pattern in invalids:
- try:
- iglob(pattern)
- except ValueError:
- continue
- else:
- self.fail(msg % pattern)
+ self.assertRaises(ValueError, iglob, pattern)
class EggInfoToDistInfoTestCase(support.TempdirManager,