diff options
author | Andy Li <andy@onthewings.net> | 2013-02-19 02:30:44 +0800 |
---|---|---|
committer | Andy Li <andy@onthewings.net> | 2013-02-19 02:30:44 +0800 |
commit | 565a8ec40162f20a004b826ad339c655f696b45e (patch) | |
tree | a4ba4fe5b8874e3305941613034e6f6548bdb6a9 /tests/test_util.py | |
parent | 25273ed077997a0ed8ca8bcf34be7b94e248c5cb (diff) | |
parent | 054c464c70c115f476608a51bb0b4a931d1fa400 (diff) | |
download | pygments-565a8ec40162f20a004b826ad339c655f696b45e.tar.gz |
Merge upstream changes.
Diffstat (limited to 'tests/test_util.py')
-rw-r--r-- | tests/test_util.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/test_util.py b/tests/test_util.py index be1662f9..dbbc66ce 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -3,7 +3,7 @@ Test suite for the util module ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - :copyright: Copyright 2006-2012 by the Pygments team, see AUTHORS. + :copyright: Copyright 2006-2013 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ @@ -98,8 +98,10 @@ class UtilTest(unittest.TestCase): self.assertTrue(util.shebang_matches('#!C:\\Python2.4\\Python.exe', r'python(2\.\d)?')) - self.assertFalse(util.shebang_matches('#!/usr/bin/python-ruby', r'python(2\.\d)?')) - self.assertFalse(util.shebang_matches('#!/usr/bin/python/ruby', r'python(2\.\d)?')) + self.assertFalse(util.shebang_matches('#!/usr/bin/python-ruby', + r'python(2\.\d)?')) + self.assertFalse(util.shebang_matches('#!/usr/bin/python/ruby', + r'python(2\.\d)?')) self.assertFalse(util.shebang_matches('#!', r'python')) def test_doctype_matches(self): @@ -131,4 +133,3 @@ class UtilTest(unittest.TestCase): m = r.match(first_non_bmp * 2) self.assertTrue(m) self.assertEquals(m.end(), len(first_non_bmp) * 2) - |