Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def testFormat(self):
with disableColoring(), captureStandardStreams() as (out, err):
"""comment"""; noop(); ic( # noqa
'sup'); noop() # noqa
"""comment"""; noop(); s = ic.format( # noqa
'sup'); noop() # noqa
assert s == err.getvalue().rstrip()