From: | "Sebastien Fabbro (bicatali)" <bicatali@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-python/oct2py/files: oct2py-1.3.0-test.patch |
Date: | Thu, 29 May 2014 15:42:13 |
Message-Id: | 20140529154210.84E6D2004F@flycatcher.gentoo.org |
1 | bicatali 14/05/29 15:42:10 |
2 | |
3 | Added: oct2py-1.3.0-test.patch |
4 | Log: |
5 | Imported fix for bug #511044 to main tree |
6 | |
7 | (Portage version: HEAD/cvs/Linux x86_64, signed Manifest commit with key 0x13CB1360) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-python/oct2py/files/oct2py-1.3.0-test.patch |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/oct2py/files/oct2py-1.3.0-test.patch?rev=1.1&view=markup |
13 | 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 |
14 | |
15 | Index: oct2py-1.3.0-test.patch |
16 | =================================================================== |
17 | diff --git a/oct2py/ipython/tests/test_octavemagic.py b/oct2py/ipython/tests/test_octavemagic.py |
18 | index b75d992..43c0a8b 100644 |
19 | --- a/oct2py/ipython/tests/test_octavemagic.py |
20 | +++ b/oct2py/ipython/tests/test_octavemagic.py |
21 | @@ -1,5 +1,6 @@ |
22 | """Tests for Octave magics extension.""" |
23 | |
24 | +import codecs |
25 | import unittest |
26 | import sys |
27 | from IPython.testing.globalipapp import get_ipython |
28 | @@ -22,7 +23,8 @@ class OctaveMagicTest(unittest.TestCase): |
29 | IPython team's logic. |
30 | ''' |
31 | if not sys.stdin.encoding: |
32 | - sys.stdin.encoding = 'utf-8' # needed for py.test |
33 | + # needed for py.test |
34 | + sys.stdin = codecs.getreader('utf-8')(sys.stdin) |
35 | cls.ip = get_ipython() |
36 | # This is just to get a minimally modified version of the changes |
37 | # working |