Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <Arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch
Date: Fri, 01 Oct 2010 18:28:38
Message-Id: 201010012029.12435.Arfrever@gentoo.org
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in dev-python/sympy/files: sympy-0.6.7-python-2.7.patch by Peter Volkov
1 2010-10-01 10:30:22 Peter Volkov napisał(a):
2 > В Птн, 24/09/2010 в 20:09 +0000, Arfrever Frehtes Taifersar Arahesis
3 > (arfrever) пишет:
4 > > Added: sympy-0.6.7-python-2.7.patch
5 > > Log:
6 > > Fix majority of test failures with Python 2.7 (bug #330713).
7 >
8 > This patch fixes not test failure, but sympy's ability to work with
9 > python-2.7.
10
11 I'm assuming that you mean the change in stringpict.py, not in runtests.py.
12 The change in stringpict.py only fixes a doctest in a doc string. The doctest
13 isn't shown in the patch, so I'm pasting the whole code of this function below:
14
15 def right(self, *args):
16 r"""Put pictures next to this one.
17 Returns string, baseline arguments for stringPict.
18 (Multiline) strings are allowed, and are given a baseline of 0.
19 >>> from sympy.printing.pretty.stringpict import stringPict
20 >>> print stringPict("10").right(" + ",stringPict("1\r-\r2",1))[0]
21 1
22 10 + -
23 2
24
25 """
26 return stringPict.next(self, *args)
27
28 http://docs.python.org/library/doctest.html
29
30 > > Revision Changes Path
31 > > 1.1 dev-python/sympy/files/sympy-0.6.7-python-2.7.patch
32 > >
33 > > file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1&view=markup
34 > > plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/sympy/files/sympy-0.6.7-python-2.7.patch?rev=1.1&content-type=text/plain
35 > >
36 > > Index: sympy-0.6.7-python-2.7.patch
37 > > ===================================================================
38 > > http://github.com/sympy/sympy/commit/717516b8ffae806cdfdea8141ceb839107d92431
39 > >
40 > > --- sympy/printing/pretty/stringpict.py
41 > > +++ sympy/printing/pretty/stringpict.py
42 > > @@ -81,7 +81,7 @@
43 > > return '\n'.join(result), newBaseline
44 > >
45 > > def right(self, *args):
46 > > - """Put pictures next to this one.
47 > > + r"""Put pictures next to this one.
48 > > Returns string, baseline arguments for stringPict.
49 > > (Multiline) strings are allowed, and are given a baseline of 0.
50 > > >>> from sympy.printing.pretty.stringpict import stringPict
51 > > --- sympy/utilities/runtests.py
52 > > +++ sympy/utilities/runtests.py
53 > > @@ -778,7 +778,7 @@
54 > > def start(self):
55 > > self.write_center("test process starts")
56 > > executable = sys.executable
57 > > - v = sys.version_info
58 > > + v = tuple(sys.version_info)
59 > > python_version = "%s.%s.%s-%s-%s" % v
60 > > self.write("executable: %s (%s)\n\n" % (executable, python_version))
61 > > self._t_start = clock()
62
63 --
64 Arfrever Frehtes Taifersar Arahesis

Attachments

File name MIME type
signature.asc application/pgp-signature