summaryrefslogtreecommitdiff
path: root/tests/test_regexlexer.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-03-11 08:17:52 +0100
committerGeorg Brandl <georg@python.org>2012-03-11 08:17:52 +0100
commit6f8e79cdf72575dac0047deaf7b2a32540676198 (patch)
treee0ced08a2f775d7e8c9fc4d523566bc797fbcb43 /tests/test_regexlexer.py
parent9e80de2655ac91392e77fdb851cb8af940cff89d (diff)
downloadpygments-6f8e79cdf72575dac0047deaf7b2a32540676198.tar.gz
Fixes #748: clean up deprecation and resource warnings in the test suite when run with python3 -Wd.
Diffstat (limited to 'tests/test_regexlexer.py')
-rw-r--r--tests/test_regexlexer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_regexlexer.py b/tests/test_regexlexer.py
index fbb71ad6..74b64d9b 100644
--- a/tests/test_regexlexer.py
+++ b/tests/test_regexlexer.py
@@ -34,6 +34,6 @@ class TupleTransTest(unittest.TestCase):
def test(self):
lx = TestLexer()
toks = list(lx.get_tokens_unprocessed('abcde'))
- self.assertEquals(toks,
+ self.assertEqual(toks,
[(0, Text.Root, 'a'), (1, Text.Rag, 'b'), (2, Text.Rag, 'c'),
(3, Text.Beer, 'd'), (4, Text.Root, 'e')])