mirror of https://github.com/python/cpython
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:
parent
f23ad3d65e
commit
813669f911
|
@ -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):
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue