fixup test suite for already-registered warnings

This commit is contained in:
Georg Brandl
2015-07-22 19:29:22 +02:00
parent 277f8d3ec3
commit 1d7db8da46
4 changed files with 34 additions and 18 deletions

View File

@@ -153,12 +153,8 @@ if PY2:
def test_gen_check_types():
for key, value, should, deftype in TYPECHECK_OVERRIDES:
warning = StringIO()
try:
app = TestApp(confoverrides={key: value}, warning=warning)
except:
pass
else:
app.cleanup()
app = TestApp(confoverrides={key: value}, warning=warning)
app.cleanup()
real = type(value).__name__
msg = ("WARNING: the config value %r has type `%s',"