mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Minor tweaks to packaging tests.
- Move a tearDown method right after setUp - Use assertRaises instead of reinventing it - Skip a test instead of commenting it out, as a reminder
This commit is contained in:
parent
c06f46f74c
commit
ed5d2f1310
3 changed files with 28 additions and 34 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue