bicatali 14/05/29 15:42:10 Added: oct2py-1.3.0-test.patch Log: Imported fix for bug #511044 to main tree (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360)
Revision Changes Path 1.1 dev-python/oct2py/files/oct2py-1.3.0-test.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oct2py/files/oct2py-1.3.0-test.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oct2py/files/oct2py-1.3.0-test.patch?rev=1.1&content-type=text/plain Index: oct2py-1.3.0-test.patch =================================================================== diff --git a/oct2py/ipython/tests/test_octavemagic.py b/oct2py/ipython/tests/test_octavemagic.py index b75d992..43c0a8b 100644 --- a/oct2py/ipython/tests/test_octavemagic.py +++ b/oct2py/ipython/tests/test_octavemagic.py @@ -1,5 +1,6 @@ """Tests for Octave magics extension.""" +import codecs import unittest import sys from IPython.testing.globalipapp import get_ipython @@ -22,7 +23,8 @@ class OctaveMagicTest(unittest.TestCase): IPython team's logic. ''' if not sys.stdin.encoding: - sys.stdin.encoding = 'utf-8' # needed for py.test + # needed for py.test + sys.stdin = codecs.getreader('utf-8')(sys.stdin) cls.ip = get_ipython() # This is just to get a minimally modified version of the changes # working