summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-10-14 14:42:55 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-10-14 14:42:55 +0200
commitd5aef03683f77400cd56160852c650de09d0a8bb (patch)
treefb3ee997fc307506615ade7c3836dc3b659ef5e2
parent05111636cff6ca9e1777480ff894e85afd63fdd3 (diff)
downloadcython-d5aef03683f77400cd56160852c650de09d0a8bb.tar.gz
Fix deprecated unittest API usage.
-rw-r--r--Cython/Build/Tests/TestStripLiterals.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Build/Tests/TestStripLiterals.py b/Cython/Build/Tests/TestStripLiterals.py
index ca8e6a7d1..a7572a508 100644
--- a/Cython/Build/Tests/TestStripLiterals.py
+++ b/Cython/Build/Tests/TestStripLiterals.py
@@ -6,10 +6,10 @@ class TestStripLiterals(CythonTest):
def t(self, before, expected):
actual, literals = strip_string_literals(before, prefix="_L")
- self.assertEquals(expected, actual)
+ self.assertEqual(expected, actual)
for key, value in literals.items():
actual = actual.replace(key, value)
- self.assertEquals(before, actual)
+ self.assertEqual(before, actual)
def test_empty(self):
self.t("", "")