[pypy-commit] pypy default: Document pytest.py like I documented test_all.py.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r55492:ac392fb76904 Date: 2012-06-08 07:55 +0200 http://bitbucket.org/pypy/pypy/changeset/ac392fb76904/ Log:Document pytest.py like I documented test_all.py. diff --git a/pypy/test_all.py b/pypy/test_all.py --- a/pypy/test_all.py +++ b/pypy/test_all.py

[pypy-commit] pypy ppc-backend-2: Do not trample float result register when saving and restoring volatiles.

2012-06-07 Thread edelsohn
Author: edelsohn Branch: ppc-backend-2 Changeset: r55491:cdd6d603200b Date: 2012-06-07 22:59 -0400 http://bitbucket.org/pypy/pypy/changeset/cdd6d603200b/ Log:Do not trample float result register when saving and restoring volatiles. diff --git a/pypy/jit/backend/ppc/helper/assembler.py

[pypy-commit] pypy reflex-support: use root-config, if available

2012-06-07 Thread wlav
Author: Wim Lavrijsen Branch: reflex-support Changeset: r55490:304012893b6b Date: 2012-06-07 15:34 -0700 http://bitbucket.org/pypy/pypy/changeset/304012893b6b/ Log:use root-config, if available diff --git a/pypy/module/cppyy/capi/cint_capi.py b/pypy/module/cppyy/capi/cint_capi.py --- a/pypy

[pypy-commit] pypy default: explain how root-config can be used to locate Reflex headers and libs

2012-06-07 Thread wlav
Author: Wim Lavrijsen Branch: Changeset: r55489:56c71517fc85 Date: 2012-06-07 15:33 -0700 http://bitbucket.org/pypy/pypy/changeset/56c71517fc85/ Log:explain how root-config can be used to locate Reflex headers and libs diff --git a/pypy/doc/cppyy.rst b/pypy/doc/cppyy.rst --- a/pypy/

[pypy-commit] pypy reflex-support: add automatic class loader based on .rootmap files; and its test

2012-06-07 Thread wlav
Author: Wim Lavrijsen Branch: reflex-support Changeset: r55487:cf60751f1e6a Date: 2012-06-07 11:32 -0700 http://bitbucket.org/pypy/pypy/changeset/cf60751f1e6a/ Log:add automatic class loader based on .rootmap files; and its test diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgign

[pypy-commit] pypy default: o) explain class loader usage

2012-06-07 Thread wlav
Author: Wim Lavrijsen Branch: Changeset: r55486:5f515c20c98a Date: 2012-06-07 13:48 -0700 http://bitbucket.org/pypy/pypy/changeset/5f515c20c98a/ Log:o) explain class loader usage o) fix a few typos o) incorporate feedback from Alex Pyattaev diff --git a/pypy/doc/cppyy.rst b/pypy/doc

[pypy-commit] pypy py3k: kill lines which were wrongly put in by a bad merge in rev a9fa4e709310

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55485:93d2876db486 Date: 2012-06-07 22:26 +0200 http://bitbucket.org/pypy/pypy/changeset/93d2876db486/ Log:kill lines which were wrongly put in by a bad merge in rev a9fa4e709310 diff --git a/lib-python/3.2/sysconfig.py b/lib-python/3.2/s

[pypy-commit] pypy py3k: fix test_print_info by making app_main importable on python2

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55484:7cf90c1c8168 Date: 2012-06-07 22:09 +0200 http://bitbucket.org/pypy/pypy/changeset/7cf90c1c8168/ Log:fix test_print_info by making app_main importable on python2 diff --git a/pypy/translator/goal/app_main.py b/pypy/translator/goal/app_main.

[pypy-commit] pypy py3k: having the correct PYTHONPATH is required by more tests, so move the logic in _spawn

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55482:c5bcc6709593 Date: 2012-06-07 15:59 +0200 http://bitbucket.org/pypy/pypy/changeset/c5bcc6709593/ Log:having the correct PYTHONPATH is required by more tests, so move the logic in _spawn diff --git a/pypy/translator/goal/test2/test_a

[pypy-commit] pypy py3k: yet another way to set the correct PYTHONPATH, which works also for other test classes

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55483:4d17875981b8 Date: 2012-06-07 16:09 +0200 http://bitbucket.org/pypy/pypy/changeset/4d17875981b8/ Log:yet another way to set the correct PYTHONPATH, which works also for other test classes diff --git a/pypy/translator/goal/test2/test

[pypy-commit] pypy py3k: bah, actually fix test_options_i_m: we need to ensure to have the correct pypy package in PYTHONPATH

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55481:b3857dd5d88d Date: 2012-06-07 15:49 +0200 http://bitbucket.org/pypy/pypy/changeset/b3857dd5d88d/ Log:bah, actually fix test_options_i_m: we need to ensure to have the correct pypy package in PYTHONPATH diff --git a/pypy/translator/g

[pypy-commit] pypy py3k: make pypy importable in python3; this fixes test_app_main.test_options_i_m, which try to import pypy.translator.goal.test2.mymodule

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55480:215618f03706 Date: 2012-06-07 15:45 +0200 http://bitbucket.org/pypy/pypy/changeset/215618f03706/ Log:make pypy importable in python3; this fixes test_app_main.test_options_i_m, which try to import pypy.translator.goal.test2.m

[pypy-commit] pypy py3k: we cannot directly import/execute pypy.module.sys.state.getinitalpath, because it's a python2 file. But the good news is that we don't actually need it: for the tests, it is e

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55478:6ce1c997bdd4 Date: 2012-06-07 15:28 +0200 http://bitbucket.org/pypy/pypy/changeset/6ce1c997bdd4/ Log:we cannot directly import/execute pypy.module.sys.state.getinitalpath, because it's a python2 file. But the good news is tha

[pypy-commit] pypy py3k: try to simulate the very same conditions we get when running app_main on pypy: in particular, there are no sys.std{in, out, err} yet

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55479:515924da5e05 Date: 2012-06-07 15:44 +0200 http://bitbucket.org/pypy/pypy/changeset/515924da5e05/ Log:try to simulate the very same conditions we get when running app_main on pypy: in particular, there are no sys.std{in,out,err}

[pypy-commit] pypy py3k: make sure to init sys.std{in, out, err} only if they are not initialized yet. This fixes the first few tests in test_app_main, which rely on stdout to be a StringIO()

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: py3k Changeset: r55477:237bdac6939b Date: 2012-06-07 14:32 +0200 http://bitbucket.org/pypy/pypy/changeset/237bdac6939b/ Log:make sure to init sys.std{in,out,err} only if they are not initialized yet. This fixes the first few tests in test_app_main,

[pypy-commit] cffi default: Bah, forgot this (but the test doesn't fail?).

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r270:c9b494b1259e Date: 2012-06-07 21:34 +0200 http://bitbucket.org/cffi/cffi/changeset/c9b494b1259e/ Log:Bah, forgot this (but the test doesn't fail?). diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ffi_backend.c +++ b/c/_ffi_backend.c @@ -3

[pypy-commit] cffi default: Fix for the special case of setting 1.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r269:daeee59179bd Date: 2012-06-07 21:24 +0200 http://bitbucket.org/cffi/cffi/changeset/daeee59179bd/ Log:Fix for the special case of setting 1. Test and fix the exact error message on Python 2.6. diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c

[pypy-commit] pypy default: whoops

2012-06-07 Thread mattip
Author: Matti Picus Branch: Changeset: r55476:4059fc4af2eb Date: 2012-06-07 22:24 +0300 http://bitbucket.org/pypy/pypy/changeset/4059fc4af2eb/ Log:whoops diff --git a/pypy/module/pypyjit/test_pypy_c/test__ffi.py b/pypy/module/pypyjit/test_pypy_c/test__ffi.py --- a/pypy/module/pypyjit/test_

[pypy-commit] cffi default: Fix the test (by changing it), and fix the test (by changing the tested

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r268:6831272b36f6 Date: 2012-06-07 21:14 +0200 http://bitbucket.org/cffi/cffi/changeset/6831272b36f6/ Log:Fix the test (by changing it), and fix the test (by changing the tested code). diff --git a/c/_ffi_backend.c b/c/_ffi_backend.c --- a/c/_ff

[pypy-commit] cffi default: Rename "new" to "newp" in the test too.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r267:61bfeb8c0ffc Date: 2012-06-07 21:11 +0200 http://bitbucket.org/cffi/cffi/changeset/61bfeb8c0ffc/ Log:Rename "new" to "newp" in the test too. diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -132,11 +132,11 @@ def tes

[pypy-commit] cffi default: A failing test.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r266:4ee6c9bac6e5 Date: 2012-06-07 21:09 +0200 http://bitbucket.org/cffi/cffi/changeset/4ee6c9bac6e5/ Log:A failing test. diff --git a/c/test_c.py b/c/test_c.py --- a/c/test_c.py +++ b/c/test_c.py @@ -699,6 +699,11 @@ py.test.raises(OverflowError,

[pypy-commit] pypy stm-thread: Tweak: it seems that 9 gives better results than both 7 or 11 (the

2012-06-07 Thread arigo
Author: Armin Rigo Branch: stm-thread Changeset: r55475:1e8fe0bdddc8 Date: 2012-06-07 18:59 +0200 http://bitbucket.org/pypy/pypy/changeset/1e8fe0bdddc8/ Log:Tweak: it seems that 9 gives better results than both 7 or 11 (the default). diff --git a/pypy/config/pypyoption.py b/pypy/conf

[pypy-commit] extradoc extradoc: Update the people's plan.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: extradoc Changeset: r4211:68e854549c87 Date: 2012-06-07 18:39 +0200 http://bitbucket.org/pypy/extradoc/changeset/68e854549c87/ Log:Update the people's plan. diff --git a/sprintinfo/leipzig2012/people.txt b/sprintinfo/leipzig2012/people.txt --- a/sprintinfo/leipzig

[pypy-commit] pypy stm-thread: Fix for corner cases of non-properly-nested atomic blocks.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: stm-thread Changeset: r55474:e054fd8fe9d4 Date: 2012-06-07 18:17 +0200 http://bitbucket.org/pypy/pypy/changeset/e054fd8fe9d4/ Log:Fix for corner cases of non-properly-nested atomic blocks. diff --git a/pypy/translator/stm/src_stm/core.c b/pypy/translator/stm/src_s

[pypy-commit] pypy stm-thread: Dynamically shorten transactions if they start failing.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: stm-thread Changeset: r55473:4f11e8850c57 Date: 2012-06-07 18:05 +0200 http://bitbucket.org/pypy/pypy/changeset/4f11e8850c57/ Log:Dynamically shorten transactions if they start failing. diff --git a/pypy/translator/stm/src_stm/core.c b/pypy/translator/stm/src_stm/

[pypy-commit] pypy default: Spelling nit.

2012-06-07 Thread amauryfa
Author: Amaury Forgeot d'Arc Branch: Changeset: r55472:a13a3b8a9806 Date: 2012-06-07 18:02 +0200 http://bitbucket.org/pypy/pypy/changeset/a13a3b8a9806/ Log:Spelling nit. diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/doc/rele

[pypy-commit] pypy default: merge

2012-06-07 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r55471:acddcd17365c Date: 2012-06-07 17:32 +0200 http://bitbucket.org/pypy/pypy/changeset/acddcd17365c/ Log:merge diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/doc/release-1.9.0.

[pypy-commit] pypy default: progress

2012-06-07 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r55470:c18c988be2bf Date: 2012-06-07 16:46 +0200 http://bitbucket.org/pypy/pypy/changeset/c18c988be2bf/ Log:progress diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/doc/release-1.9

[pypy-commit] pypy ppc-backend-2: Implement math_sqrt in prepare_call.

2012-06-07 Thread edelsohn
Author: edelsohn Branch: ppc-backend-2 Changeset: r55469:cdbf6609d4a7 Date: 2012-06-07 10:56 -0400 http://bitbucket.org/pypy/pypy/changeset/cdbf6609d4a7/ Log:Implement math_sqrt in prepare_call. diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py --- a/pypy/jit/ba

[pypy-commit] pypy ppc-backend-2: Fix typo in math_sqrt method name.

2012-06-07 Thread edelsohn
Author: edelsohn Branch: ppc-backend-2 Changeset: r55468:e508fcd5ac01 Date: 2012-06-07 10:55 -0400 http://bitbucket.org/pypy/pypy/changeset/e508fcd5ac01/ Log:Fix typo in math_sqrt method name. diff --git a/pypy/jit/backend/ppc/opassembler.py b/pypy/jit/backend/ppc/opassembler.py --- a/pypy/j

[pypy-commit] pypy ppc-backend-2: Use negation of EQ bit instead of UNORDERED for FLOAT_NE and INT_NE.

2012-06-07 Thread edelsohn
Author: edelsohn Branch: ppc-backend-2 Changeset: r55467:8f2c4f273410 Date: 2012-06-07 10:36 -0400 http://bitbucket.org/pypy/pypy/changeset/8f2c4f273410/ Log:Use negation of EQ bit instead of UNORDERED for FLOAT_NE and INT_NE. diff --git a/pypy/jit/backend/ppc/helper/assembler.py b/pypy/jit/

[pypy-commit] pypy ppc-backend-2: Include UNORDERED test for FLOAT_NE.

2012-06-07 Thread edelsohn
Author: edelsohn Branch: ppc-backend-2 Changeset: r55466:7cd4b450ce72 Date: 2012-06-07 10:28 -0400 http://bitbucket.org/pypy/pypy/changeset/7cd4b450ce72/ Log:Include UNORDERED test for FLOAT_NE. diff --git a/pypy/jit/backend/ppc/helper/assembler.py b/pypy/jit/backend/ppc/helper/assembler.py

[pypy-commit] pypy release-1.9.x: hg merge default

2012-06-07 Thread arigo
Author: Armin Rigo Branch: release-1.9.x Changeset: r55465:341e1e3821ff Date: 2012-06-07 14:24 +0200 http://bitbucket.org/pypy/pypy/changeset/341e1e3821ff/ Log:hg merge default diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst --- a/pypy/doc/cpython_differences

[pypy-commit] pypy default: add a warning

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r55464:503851d6f414 Date: 2012-06-07 14:05 +0200 http://bitbucket.org/pypy/pypy/changeset/503851d6f414/ Log:add a warning diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/doc/release-1.9.

[pypy-commit] pypy default: add a point about ffistruct

2012-06-07 Thread antocuni
Author: Antonio Cuni Branch: Changeset: r55463:d4cd53ec83f2 Date: 2012-06-07 13:54 +0200 http://bitbucket.org/pypy/pypy/changeset/d4cd53ec83f2/ Log:add a point about ffistruct diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/do

[pypy-commit] pypy default: progress

2012-06-07 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r55462:0e4547395030 Date: 2012-06-07 13:02 +0200 http://bitbucket.org/pypy/pypy/changeset/0e4547395030/ Log:progress diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/doc/release-1.9

[pypy-commit] pypy default: inexpensive is relative, remove

2012-06-07 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r55461:52591d758478 Date: 2012-06-07 12:56 +0200 http://bitbucket.org/pypy/pypy/changeset/52591d758478/ Log:inexpensive is relative, remove diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++

[pypy-commit] pypy default: add percentage

2012-06-07 Thread fijal
Author: Maciej Fijalkowski Branch: Changeset: r55460:7aaa37a98d70 Date: 2012-06-07 12:56 +0200 http://bitbucket.org/pypy/pypy/changeset/7aaa37a98d70/ Log:add percentage diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/doc/relea

[pypy-commit] pypy default: GetConsoleCP() & GetConsoleOutputCP() for Windows.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r55459:8d567513d04d Date: 2012-06-07 12:35 +0200 http://bitbucket.org/pypy/pypy/changeset/8d567513d04d/ Log:GetConsoleCP() & GetConsoleOutputCP() for Windows. diff --git a/pypy/module/__pypy__/__init__.py b/pypy/module/__pypy__/__init__.py --- a/pypy/mo

[pypy-commit] pypy default: Document __len__/__length_hint__.

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r55458:5c7fa43f9bb6 Date: 2012-06-07 11:18 +0200 http://bitbucket.org/pypy/pypy/changeset/5c7fa43f9bb6/ Log:Document __len__/__length_hint__. diff --git a/pypy/doc/cpython_differences.rst b/pypy/doc/cpython_differences.rst --- a/pypy/doc/cpython_differe

[pypy-commit] pypy release-1.9.x: hg merge default

2012-06-07 Thread arigo
Author: Armin Rigo Branch: release-1.9.x Changeset: r55457:9809b97aa219 Date: 2012-06-07 11:08 +0200 http://bitbucket.org/pypy/pypy/changeset/9809b97aa219/ Log:hg merge default diff --git a/pypy/doc/release-1.9.0.rst b/pypy/doc/release-1.9.0.rst --- a/pypy/doc/release-1.9.0.rst +++ b/pypy/do

[pypy-commit] pypy default: I *think* that this is already much better: if PYTHONIOENCODING

2012-06-07 Thread arigo
Author: Armin Rigo Branch: Changeset: r55456:131735f133b5 Date: 2012-06-07 11:07 +0200 http://bitbucket.org/pypy/pypy/changeset/131735f133b5/ Log:I *think* that this is already much better: if PYTHONIOENCODING is not set, then don't call set_io_encoding() at all on Windows. diff --g