| 1 |
cp -rf pypy3.9/examples . |
| 2 |
cp -rf pypy3.9/doc . |
| 3 |
cp -f pypy3.9/index.html . |
| 4 |
cp -rf pypy3.9/module . |
| 5 |
cp -rf py3.10/multiprocess . |
| 6 |
cp -rf pypy3.9/_multiprocess . |
| 7 |
# ---------------------------------------------------------------------- |
| 8 |
$ diff Python-3.10.9/Lib/test/_test_multiprocessing.py pypy3.10-v7.3.12-src/lib-python/3/test/_test_multiprocessing.py |
| 9 |
621c621,622 |
| 10 |
< gc.collect() # For PyPy or other GCs. |
| 11 |
--- |
| 12 |
> for i in range(3): |
| 13 |
> gc.collect() |
| 14 |
2678c2679,2680 |
| 15 |
< gc.collect() # For PyPy or other GCs. |
| 16 |
--- |
| 17 |
> for i in range(3): |
| 18 |
> gc.collect() |
| 19 |
2766a2769,2771 |
| 20 |
> sm = multiprocessing.get_start_method() |
| 21 |
> if sm == 'fork' and sys.implementation.name == 'pypy': |
| 22 |
> self.skipTest("race condition on PyPy") |
| 23 |
2980c2985,2986 |
| 24 |
< self.assertRaises(Exception, queue.put, time.sleep) |
| 25 |
--- |
| 26 |
> # Changed on PyPy: passing functions to xmlrpc is broken |
| 27 |
> #self.assertRaises(Exception, queue.put, time.sleep) |
| 28 |
3677a3684,3685 |
| 29 |
> support.gc_collect() # for PyPy and other GCs |
| 30 |
> |
| 31 |
3683a3692 |
| 32 |
> @test.support.cpython_only |
| 33 |
4302c4311,4312 |
| 34 |
< gc.collect() # For PyPy or other GCs. |
| 35 |
--- |
| 36 |
> for i in range(3): |
| 37 |
> gc.collect() |
| 38 |
4356a4367 |
| 39 |
> @test.support.cpython_only |
| 40 |
# ---------------------------------------------------------------------- |
| 41 |
diff pypy3.10-v7.3.15-src/lib-python/3/multiprocessing/managers.py pypy3.10-v7.3.16-src/lib-python/3/multiprocessing/managers.py |
| 42 |
729a730 |
| 43 |
> conn.close() |
| 44 |
diff pypy3.10-v7.3.15-src/lib-python/3/multiprocessing/popen_spawn_win32.py pypy3.10-v7.3.16-src/lib-python/3/multiprocessing/popen_spawn_win32.py |
| 45 |
25c25,27 |
| 46 |
< WINENV = not _path_eq(sys.executable, sys._base_executable) |
| 47 |
--- |
| 48 |
> # PyPy is not affected by bpo-35797 |
| 49 |
> # WINENV = not _path_eq(sys.executable, sys._base_executable) |
| 50 |
> WINENV = False |
| 51 |
# ---------------------------------------------------------------------- |
| 52 |
diff pypy3.10-v7.3.16-src/lib-python/3/multiprocessing/context.py pypy3.10-v7.3.17-src/lib-python/3/multiprocessing/context.py |
| 53 |
229a230 |
| 54 |
> |
| 55 |
diff pypy3.10-v7.3.16-src/lib-python/3/test/_test_multiprocessing.py pypy3.10-v7.3.17-src/lib-python/3/test/_test_multiprocessing.py |
| 56 |
5738d5737 |
| 57 |
< |
| 58 |
5740d5738 |
| 59 |
< |
| 60 |
# ---------------------------------------------------------------------- |
| 61 |
diff pypy3.10-v7.3.17-src/pypy/module/_multiprocessing/interp_semaphore.py pypy3.10-v7.3.18-src/pypy/module/_multiprocessing/interp_semaphore.py |
| 62 |
61a62,65 |
| 63 |
> TIMEZONE = platform.Struct('struct timezone', [ |
| 64 |
> ('tz_minuteswest', rffi.INT_real), |
| 65 |
> ('tz_dsttime', rffi.INT_real), |
| 66 |
> ]) |
| 67 |
69a74 |
| 68 |
> TIMEZONE = config['TIMEZONE'] |
| 69 |
71a77 |
| 70 |
> TIMEZONEP = rffi.CArrayPtr(TIMEZONE) |
| 71 |
105c111 |
| 72 |
< _sem_getvalue = external('sem_getvalue', [SEM_T, rffi.INTP], rffi.INT, |
| 73 |
--- |
| 74 |
> _sem_getvalue = external('sem_getvalue', [SEM_T, rffi.INT_realP], rffi.INT, |
| 75 |
196c202 |
| 76 |
< sval_ptr = lltype.malloc(rffi.INTP.TO, 1, flavor='raw') |
| 77 |
--- |
| 78 |
> sval_ptr = lltype.malloc(rffi.INT_realP.TO, 1, flavor='raw') |
| 79 |
206a213 |
| 80 |
> void = lltype.nullptr(rffi.VOIDP.TO) |
| 81 |
208c215 |
| 82 |
< res = _gettimeofday(now, None) |
| 83 |
--- |
| 84 |
> res = _gettimeofday(now, void) |