[pypy-commit] pypy default: (cfbolz, palecsandru): Fix failing test that was not adapted when the implementation changed.

palecsandru pypy.commits at gmail.com
Wed Apr 6 04:45:39 EDT 2016


Author: Alecsandru Patrascu <alecsandru.patrascu at intel.com>
Branch: 
Changeset: r83538:1ceea7a807e1
Date: 2016-04-06 11:44 +0300
http://bitbucket.org/pypy/pypy/changeset/1ceea7a807e1/

Log:	(cfbolz, palecsandru): Fix failing test that was not adapted when
	the implementation changed.

diff --git a/pypy/module/__pypy__/test/test_magic.py b/pypy/module/__pypy__/test/test_magic.py
--- a/pypy/module/__pypy__/test/test_magic.py
+++ b/pypy/module/__pypy__/test/test_magic.py
@@ -53,7 +53,7 @@
         assert _promote(1) == 1
         assert _promote(1.1) == 1.1
         assert _promote("abc") == "abc"
-        assert _promote(u"abc") == u"abc"
+        raises(TypeError, _promote, u"abc")
         l = []
         assert _promote(l) is l
         class A(object):


More information about the pypy-commit mailing list