Antoine Pitrou added the comment:

About the test:

+        self.assertRaises(Exception, pair.read)
+        self.assertRaises(Exception, pair.write)

First, you should check for the actual RuntimeError.
Second, you need to pass the right arguments for these method calls: for 
example read(1) and write(b"x"). Otherwise the Exception could correspond to 
something else.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17671>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to