Fix a bug in the messages for an assert failure where not enough arguments to a string

were being converted in the format.
This commit is contained in:
Brett Cannon 2006-07-25 17:34:36 +00:00
parent f23ad3d65e
commit 813669f911
1 changed files with 2 additions and 2 deletions

View File

@ -115,10 +115,10 @@ def test_setparameters(dsp):
# either strict or non-strict mode. # either strict or non-strict mode.
result = dsp.setparameters(fmt, channels, rate, False) result = dsp.setparameters(fmt, channels, rate, False)
_assert(result == (fmt, channels, rate), _assert(result == (fmt, channels, rate),
"setparameters%r: returned %r" % (config + result)) "setparameters%r: returned %r" % (config, result))
result = dsp.setparameters(fmt, channels, rate, True) result = dsp.setparameters(fmt, channels, rate, True)
_assert(result == (fmt, channels, rate), _assert(result == (fmt, channels, rate),
"setparameters%r: returned %r" % (config + result)) "setparameters%r: returned %r" % (config, result))
def test_bad_setparameters(dsp): def test_bad_setparameters(dsp):