summaryrefslogtreecommitdiffstats
path: root/Lib/packaging/tests/test_util.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-06-17 17:38:38 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-06-17 17:38:38 (GMT)
commit74d68135adffce55cf96e62c0c71ab72945a7753 (patch)
tree152618e1cf9d7645e20e19939f5cf0ad5974afa9 /Lib/packaging/tests/test_util.py
parent92cafb85dd3143baa7016475b3895f5491fe451f (diff)
parented5d2f131083f16ab3d305ccc6f58c66f70f1f75 (diff)
downloadcpython-74d68135adffce55cf96e62c0c71ab72945a7753.zip
cpython-74d68135adffce55cf96e62c0c71ab72945a7753.tar.gz
cpython-74d68135adffce55cf96e62c0c71ab72945a7753.tar.bz2
Brange merge
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,