summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-01-09 23:02:38 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-01-09 23:02:38 (GMT)
commiteb168042163e57bc37cf3573eab665111bbde6cf (patch)
tree96cd062b932711c5ee9d48a6adff566764645fa6 /Lib/test
parent123e6d5b4b17e182cfa49b0913bfc0b77ecb2585 (diff)
downloadcpython-eb168042163e57bc37cf3573eab665111bbde6cf.zip
cpython-eb168042163e57bc37cf3573eab665111bbde6cf.tar.gz
cpython-eb168042163e57bc37cf3573eab665111bbde6cf.tar.bz2
assertEquals is deprecated, use assertEqual instead.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_unicode.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py
index f64a962..63883a5 100644
--- a/Lib/test/test_unicode.py
+++ b/Lib/test/test_unicode.py
@@ -1141,14 +1141,14 @@ class UnicodeTest(string_tests.CommonTest,
return int(self.value)
pi = PsuedoFloat(3.1415)
letter_m = PsuedoInt(109)
- self.assertEquals('%x' % 42, '2a')
- self.assertEquals('%X' % 15, 'F')
- self.assertEquals('%o' % 9, '11')
- self.assertEquals('%c' % 109, 'm')
- self.assertEquals('%x' % letter_m, '6d')
- self.assertEquals('%X' % letter_m, '6D')
- self.assertEquals('%o' % letter_m, '155')
- self.assertEquals('%c' % letter_m, 'm')
+ self.assertEqual('%x' % 42, '2a')
+ self.assertEqual('%X' % 15, 'F')
+ self.assertEqual('%o' % 9, '11')
+ self.assertEqual('%c' % 109, 'm')
+ self.assertEqual('%x' % letter_m, '6d')
+ self.assertEqual('%X' % letter_m, '6D')
+ self.assertEqual('%o' % letter_m, '155')
+ self.assertEqual('%c' % letter_m, 'm')
self.assertRaises(TypeError, '%x'.__mod__, pi)
self.assertRaises(TypeError, '%x'.__mod__, 3.14)
self.assertRaises(TypeError, '%X'.__mod__, 2.11)