1 |
idella4 12/11/03 18:24:32 |
2 |
|
3 |
Added: mocker-1.1.1-pypy_test.patch |
4 |
Log: |
5 |
bumped to mocker-1.1.1, new patch for pypy to pass tests, mocker-1.0 dropped, closes Bug 425686 |
6 |
|
7 |
(Portage version: 2.1.11.30/cvs/Linux x86_64, unsigned Manifest commit) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/mocker/files/mocker-1.1.1-pypy_test.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mocker/files/mocker-1.1.1-pypy_test.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/mocker/files/mocker-1.1.1-pypy_test.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: mocker-1.1.1-pypy_test.patch |
16 |
=================================================================== |
17 |
Upstream maintainer assures us "The "assertRaises" line should be skipped IMO. The next call actually succeeds, |
18 |
but of course there is no point to test for unsupported functions." |
19 |
Re the 2nd patch; |
20 |
PyPy actually behaves as if __slots__ was added to the class |
21 |
see http://morepypy.blogspot.ch/2010/11/efficiently-implementing-python-objects.html |
22 |
diff -ur mocker-1.1.1.orig/test.py mocker-1.1.1/test.py |
23 |
--- test.py 2012-05-19 19:27:02.000000000 +0800 |
24 |
+++ test.py 2012-07-11 14:43:57.848953730 +0800 |
25 |
@@ -3880,7 +3881,7 @@ |
26 |
from zlib import adler32 |
27 |
# If that fails, this test has to change because either adler32 has |
28 |
# changed, or the implementation of getargspec has changed. |
29 |
- self.assertRaises(TypeError, inspect.getargspec, adler32) |
30 |
+ # self.assertRaises(TypeError, inspect.getargspec, adler32) |
31 |
try: |
32 |
task = SpecChecker(adler32) |
33 |
task.run(self.path("asd")) |
34 |
@@ -4060,7 +4060,8 @@ |
35 |
self.calendar = calendar |
36 |
obj = C() |
37 |
self.task.replay() |
38 |
- self.assertEquals(type(obj.calendar), Mock) |
39 |
- self.assertTrue(obj.calendar is self.mock) |
40 |
+ if not hasattr(sys, 'pypy_version_info'): |
41 |
+ self.assertEquals(type(obj.calendar), Mock) |
42 |
+ self.assertTrue(obj.calendar is self.mock) |
43 |
|
44 |
def test_install_on_submodule(self): |
45 |
from os import path |