From a67a3d70b8204f42e9bc4d570587a32450e4e9b2 2019-12-27 14:20:08 From: Marc Hernandez Cabot Date: 2019-12-27 14:20:08 Subject: [PATCH] fix argument in format string --- diff --git a/IPython/testing/ipunittest.py b/IPython/testing/ipunittest.py index 56146d1..5a940a5 100644 --- a/IPython/testing/ipunittest.py +++ b/IPython/testing/ipunittest.py @@ -155,7 +155,7 @@ class Doc2UnitTester(object): # failed should contain at most one item. More than that # is a case we can't handle and should error out on if len(failed) > 1: - err = "Invalid number of test results:" % failed + err = "Invalid number of test results: %s" % failed raise ValueError(err) # Report a normal failure. self.fail('failed doctests: %s' % str(failed[0]))