mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fixup test suite for already-registered warnings
This commit is contained in:
@@ -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',"
|
||||
|
||||
Reference in New Issue
Block a user