[Python-checkins] cpython (merge 3.5 -> default): Issue 24004: Fix DeprecationWarning in a unittest

yury.selivanov python-checkins at python.org
Sun May 31 17:29:03 CEST 2015


https://hg.python.org/cpython/rev/60f5091cbfbf
changeset:   96424:60f5091cbfbf
parent:      96420:04162e06323f
parent:      96423:8296f0119f20
user:        Yury Selivanov <yselivanov at sprymix.com>
date:        Sun May 31 11:28:57 2015 -0400
summary:
  Issue 24004: Fix DeprecationWarning in a unittest

(Merge from 3.5)

files:
  Lib/test/test_asyncio/test_pep492.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_asyncio/test_pep492.py b/Lib/test/test_asyncio/test_pep492.py
--- a/Lib/test/test_asyncio/test_pep492.py
+++ b/Lib/test/test_asyncio/test_pep492.py
@@ -116,7 +116,7 @@
             return Awaitable()
 
         coro = func()
-        self.assertEquals(coro.send(None), 'spam')
+        self.assertEqual(coro.send(None), 'spam')
         coro.close()
 
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list