[pypy-commit] pypy py3k: error msg impl details
pjenvey
pypy.commits at gmail.com
Fri May 20 20:18:47 EDT 2016
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r84546:f0d05ad44099
Date: 2016-05-20 17:17 -0700
http://bitbucket.org/pypy/pypy/changeset/f0d05ad44099/
Log: error msg impl details
diff --git a/lib-python/3/test/test_socket.py b/lib-python/3/test/test_socket.py
--- a/lib-python/3/test/test_socket.py
+++ b/lib-python/3/test/test_socket.py
@@ -691,10 +691,11 @@
# wrong number of args
with self.assertRaises(TypeError) as cm:
s.sendto(b'foo')
- self.assertIn(' given)', str(cm.exception))
+ if support.check_impl_detail():
+ self.assertIn(' given)', str(cm.exception))
with self.assertRaises(TypeError) as cm:
s.sendto(b'foo', 0, sockname, 4)
- self.assertIn(' given)', str(cm.exception))
+ self.assertIn(' given', str(cm.exception))
def testCrucialConstants(self):
# Testing for mission critical constants
More information about the pypy-commit
mailing list