X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=test%2Fhelper.py;h=8a820526abfe5dbae31a1921312c60d075667c32;hb=8acb83d9937211abe7194161be863194ae445d95;hp=9a7f0746ec4ca02ed9f197395b8e48a1fffff38a;hpb=155f9550c0f7c0f671d7607f1be671e26a75f39d;p=youtube-dl.git diff --git a/test/helper.py b/test/helper.py index 9a7f0746e..8a820526a 100644 --- a/test/helper.py +++ b/test/helper.py @@ -161,7 +161,9 @@ def assertRegexpMatches(self, text, regexp, msg=None): else: m = re.match(regexp, text) if not m: - note = 'Regexp didn\'t match: %r not found in %r' % (regexp, text) + note = 'Regexp didn\'t match: %r not found' % (regexp) + if len(text) < 1000: + note += ' in %r' % text if msg is None: msg = note else: