diff options
author | Philipp Hagemeister <[email protected]> | 2014-12-12 17:06:52 +0100 |
---|---|---|
committer | Philipp Hagemeister <[email protected]> | 2014-12-12 17:06:52 +0100 |
commit | 8bdcb436f9bf90b90ddd9b93defff644760ebf02 (patch) | |
tree | f0aa628165fabdcc1b78dbefb496670b2bdc9b57 /test/helper.py | |
parent | ff815fe65aab83db7e11251db5eafc76504adf05 (diff) | |
download | youtube-dl-8bdcb436f9bf90b90ddd9b93defff644760ebf02.tar.gz youtube-dl-8bdcb436f9bf90b90ddd9b93defff644760ebf02.zip |
[test_unicode_literals] Fix test
Diffstat (limited to 'test/helper.py')
-rw-r--r-- | test/helper.py | 4 |
1 files changed, 3 insertions, 1 deletions
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: |