Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@unittest.skipIf(sphinx_version < [2, 0],
"not a problem for sphinx 2.7")
@unittest.expectedFailure
def test_warnings_depreciation(self, app, status, warning):
with self.assertWarnsRegex(sphinx.deprecation.RemovedInSphinx40Warning,
r'(?s).*Autosummary.warnings'):
app.build()