[Python-checkins] cpython (3.2): don't use assertSameElements.

gregory.p.smith python-checkins at python.org
Thu Feb 16 09:40:45 CET 2012


http://hg.python.org/cpython/rev/7a73f6d55d5c
changeset:   74976:7a73f6d55d5c
branch:      3.2
user:        Gregory P. Smith <greg at krypto.org>
date:        Thu Feb 16 00:34:12 2012 -0800
summary:
  don't use assertSameElements.

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


diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
--- a/Lib/test/test_pty.py
+++ b/Lib/test/test_pty.py
@@ -253,7 +253,7 @@
 
         # Test that the right data went to the right places.
         rfds = select.select([read_from_stdout_fd, masters[1]], [], [], 0)[0]
-        self.assertSameElements([read_from_stdout_fd, masters[1]], rfds)
+        self.assertEqual([read_from_stdout_fd, masters[1]], rfds)
         self.assertEqual(os.read(read_from_stdout_fd, 20), b'from master')
         self.assertEqual(os.read(masters[1], 20), b'from stdin')
 

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


More information about the Python-checkins mailing list