[Checkins] [zopefoundation/RestrictedPython] 588c5f: Migrate the nested generator test.

GitHub noreply at github.com
Tue Jan 31 17:18:54 CET 2017


  Branch: refs/heads/python3_docs_consolidation
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 588c5f759a9bbccb3036311261a737fa07cb1823
      https://github.com/zopefoundation/RestrictedPython/commit/588c5f759a9bbccb3036311261a737fa07cb1823
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-11-29 (Tue, 29 Nov 2016)

  Changed paths:
    R src/RestrictedPython/tests/before_and_after24.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate the nested generator test.


  Commit: ee1d51442a5dcd2bc480032d2c9e9a39c413c207
      https://github.com/zopefoundation/RestrictedPython/commit/ee1d51442a5dcd2bc480032d2c9e9a39c413c207
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-11-29 (Tue, 29 Nov 2016)

  Changed paths:
    R src/RestrictedPython/tests/before_and_after25.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate test for ternary operator.


  Commit: 292601d6ac6695b406bca499cf50451764d3b3c4
      https://github.com/zopefoundation/RestrictedPython/commit/292601d6ac6695b406bca499cf50451764d3b3c4
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-11-29 (Tue, 29 Nov 2016)

  Changed paths:
    M src/RestrictedPython/transformer.py

  Log Message:
  -----------
  Refactor out a method having common code for sequence unpacking.


  Commit: 04457dc07378fe9d4fd685c9ddd10efbd2e62557
      https://github.com/zopefoundation/RestrictedPython/commit/04457dc07378fe9d4fd685c9ddd10efbd2e62557
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-11-29 (Tue, 29 Nov 2016)

  Changed paths:
    M src/RestrictedPython/transformer.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Protect sequence unpacking on with statements.


  Commit: 1a37c462db8b8fde1d884c8a9c8f5a59a0eb73cb
      https://github.com/zopefoundation/RestrictedPython/commit/1a37c462db8b8fde1d884c8a9c8f5a59a0eb73cb
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-11-30 (Wed, 30 Nov 2016)

  Changed paths:
    R src/RestrictedPython/tests/before_and_after26.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate tests for the with statement.


  Commit: cddc72ebd6b75ab811349eb9e3b453ced0c26dde
      https://github.com/zopefoundation/RestrictedPython/commit/cddc72ebd6b75ab811349eb9e3b453ced0c26dde
  Author: Michael Howitz <mh at gocept.com>
  Date:   2016-12-03 (Sat, 03 Dec 2016)

  Changed paths:
    M .coveragerc
    M .travis.yml
    M src/RestrictedPython/Eval.py
    M src/RestrictedPython/Guards.py
    M src/RestrictedPython/MutatingWalker.py
    M src/RestrictedPython/RCompile.py
    M src/RestrictedPython/RestrictionMutator.py
    M src/RestrictedPython/SelectCompiler.py
    M src/RestrictedPython/Utilities.py
    M src/RestrictedPython/__init__.py
    M src/RestrictedPython/test_helper.py
    M src/RestrictedPython/tests/testREADME.py
    M tox.ini

  Log Message:
  -----------
  Merge branch 'Python3_update' into python3_migrate_tests_part0


  Commit: dac40605d7e43c22d969d0545957090a308b6d5d
      https://github.com/zopefoundation/RestrictedPython/commit/dac40605d7e43c22d969d0545957090a308b6d5d
  Author: stephan-hof <sh at axiros.com>
  Date:   2016-12-05 (Mon, 05 Dec 2016)

  Changed paths:
    M tests/test_transformer.py

  Log Message:
  -----------
  Get rid of wrong docstrings.


  Commit: 4d01d7ede2be8aab625bfc0f837480e4826b7ec9
      https://github.com/zopefoundation/RestrictedPython/commit/4d01d7ede2be8aab625bfc0f837480e4826b7ec9
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-01-19 (Thu, 19 Jan 2017)

  Changed paths:
    R src/RestrictedPython/tests/before_and_after27.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate 'before_and_after27'.


  Commit: 171c4c7df0b2de8a6ab9d724d47ca2a6151f61a9
      https://github.com/zopefoundation/RestrictedPython/commit/171c4c7df0b2de8a6ab9d724d47ca2a6151f61a9
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-01-19 (Thu, 19 Jan 2017)

  Changed paths:
    M src/RestrictedPython/tests/before_and_after.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate missing tests.

A lot of tests in 'before_and_after.py' are already present in
test_transformer. Just migrate the ones which were missing.


  Commit: 986eca8dba208c5a415652132b0506085c427f7d
      https://github.com/zopefoundation/RestrictedPython/commit/986eca8dba208c5a415652132b0506085c427f7d
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-01-19 (Thu, 19 Jan 2017)

  Changed paths:
    M src/RestrictedPython/tests/before_and_after.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate the tests for guarding functions calls with _apply_.


  Commit: c3f5017f7ff23538a98771a66dca3ec44d597600
      https://github.com/zopefoundation/RestrictedPython/commit/c3f5017f7ff23538a98771a66dca3ec44d597600
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-01-19 (Thu, 19 Jan 2017)

  Changed paths:
    M src/RestrictedPython/tests/before_and_after.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Migrate tests for attribute access in function defaults.


  Commit: deb434e2201f57326015939d43c692f169f0da6a
      https://github.com/zopefoundation/RestrictedPython/commit/deb434e2201f57326015939d43c692f169f0da6a
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-01-19 (Thu, 19 Jan 2017)

  Changed paths:
    M src/RestrictedPython/tests/before_and_after.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Use the 'augmented assignment' tests from the old suite.


  Commit: 3f8a078bf96f33acda133b66f0242912819a607a
      https://github.com/zopefoundation/RestrictedPython/commit/3f8a078bf96f33acda133b66f0242912819a607a
  Author: stephan-hof <sh at axiros.com>
  Date:   2017-01-19 (Thu, 19 Jan 2017)

  Changed paths:
    R src/RestrictedPython/tests/before_and_after.py

  Log Message:
  -----------
  Remove this file, since no more tests are there anymore.

Sequence unpacking is already checked in test_transformer.


  Commit: 4d98e21794413327118efe19a3170d028212aafe
      https://github.com/zopefoundation/RestrictedPython/commit/4d98e21794413327118efe19a3170d028212aafe
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    A .editorconfig
    M .gitignore
    M .travis.yml
    M buildout.cfg
    M docs/update_notes.rst
    M docs_de/RestrictedPython4/index.rst
    M setup.cfg
    M setup.py
    M src/RestrictedPython/transformer.py
    M tox.ini

  Log Message:
  -----------
  Merge branch 'Python3_update' into python3_migrate_tests_part0

# Conflicts:
#	src/RestrictedPython/transformer.py


  Commit: 255047f3a6871ad95252cef401d48ea1aaba10ae
      https://github.com/zopefoundation/RestrictedPython/commit/255047f3a6871ad95252cef401d48ea1aaba10ae
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    R src/RestrictedPython/tests/before_and_after.py
    R src/RestrictedPython/tests/before_and_after24.py
    R src/RestrictedPython/tests/before_and_after25.py
    R src/RestrictedPython/tests/before_and_after26.py
    R src/RestrictedPython/tests/before_and_after27.py
    M src/RestrictedPython/transformer.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Merge pull request #10 from zopefoundation/python3_migrate_tests_part0

Python3 migrate some of the old tests


  Commit: 4f892716fcde7397907aff4638db69a68bd22c9f
      https://github.com/zopefoundation/RestrictedPython/commit/4f892716fcde7397907aff4638db69a68bd22c9f
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M tox.ini

  Log Message:
  -----------
  Clean up.


  Commit: 94954031d0fc392f539ff9c7e173da10df945e09
      https://github.com/zopefoundation/RestrictedPython/commit/94954031d0fc392f539ff9c7e173da10df945e09
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M tox.ini

  Log Message:
  -----------
  Py.test 3.0 now works with all supported Python versions.


  Commit: cf1485bbde3f4a4f759654b20e7aeda0c1016ac8
      https://github.com/zopefoundation/RestrictedPython/commit/cf1485bbde3f4a4f759654b20e7aeda0c1016ac8
  Author: Alexander Loechel <loechel at users.noreply.github.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M tox.ini

  Log Message:
  -----------
  Merge pull request #14 from zopefoundation/clean-up-tox-ini

Clean up tox.ini


  Commit: 6df2851983aa96030337ca3681e304da5b128dcc
      https://github.com/zopefoundation/RestrictedPython/commit/6df2851983aa96030337ca3681e304da5b128dcc
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/Guards.py
    A src/RestrictedPython/_compat.py
    M src/RestrictedPython/transformer.py
    M tests/test_print_stmt.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Do the version checks in a central place.


  Commit: 5addea8eeb1e0e3b19cae39a7b231c608bff54ea
      https://github.com/zopefoundation/RestrictedPython/commit/5addea8eeb1e0e3b19cae39a7b231c608bff54ea
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M tox.ini

  Log Message:
  -----------
  Add an isort environment to apply its rules.


  Commit: 7dc6e5f04a1e2b8bb2605dc3aea2c56dd2d53df2
      https://github.com/zopefoundation/RestrictedPython/commit/7dc6e5f04a1e2b8bb2605dc3aea2c56dd2d53df2
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/Guards.py
    A src/RestrictedPython/_compat.py
    M src/RestrictedPython/transformer.py
    M tests/test_print_stmt.py
    M tests/test_transformer.py
    M tox.ini

  Log Message:
  -----------
  Merge pull request #15 from zopefoundation/central-version-checks

Centralize the Python version checks


  Commit: 5e7fdaa60534316af91c21bdfa24bf1276f9dec2
      https://github.com/zopefoundation/RestrictedPython/commit/5e7fdaa60534316af91c21bdfa24bf1276f9dec2
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/transformer.py

  Log Message:
  -----------
  Get rid of the whitelist.

Reason: ast nodes which have a `visit_` function had also to be in the
whitelist. This was an unnecessary duplication.

The most important part of art the methods `generic_visit` and
`node_contents_visit`.

Additionally I forbid all ast nodes which are not yet covered by tests.


  Commit: 36fd52063b1b7ad91804b43bb7290e445b86f77f
      https://github.com/zopefoundation/RestrictedPython/commit/36fd52063b1b7ad91804b43bb7290e445b86f77f
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M tests/test_print_function.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Improve tests.


  Commit: f4ac2b5a1ac283cd6c49a881aa3446643289652d
      https://github.com/zopefoundation/RestrictedPython/commit/f4ac2b5a1ac283cd6c49a881aa3446643289652d
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/transformer.py

  Log Message:
  -----------
  Incorporate change requests.


  Commit: d4bd9d00b911e6bbe982252d5b6d5c63d6c8b4b1
      https://github.com/zopefoundation/RestrictedPython/commit/d4bd9d00b911e6bbe982252d5b6d5c63d6c8b4b1
  Author: Michael Howitz <mh at gocept.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/transformer.py
    M tests/test_print_function.py
    M tests/test_transformer.py

  Log Message:
  -----------
  Merge pull request #16 from zopefoundation/remove-whitelist

Get rid of the whitelist.


  Commit: fa034ab5a341b899fc6c0bb96b56ecece1cad617
      https://github.com/zopefoundation/RestrictedPython/commit/fa034ab5a341b899fc6c0bb96b56ecece1cad617
  Author: Alexander Loechel <loechel at users.noreply.github.com>
  Date:   2017-01-31 (Tue, 31 Jan 2017)

  Changed paths:
    M src/RestrictedPython/Guards.py
    A src/RestrictedPython/_compat.py
    R src/RestrictedPython/tests/before_and_after.py
    R src/RestrictedPython/tests/before_and_after24.py
    R src/RestrictedPython/tests/before_and_after25.py
    R src/RestrictedPython/tests/before_and_after26.py
    R src/RestrictedPython/tests/before_and_after27.py
    M src/RestrictedPython/transformer.py
    M tests/test_print_function.py
    M tests/test_print_stmt.py
    M tests/test_transformer.py
    M tox.ini

  Log Message:
  -----------
  Merge branch 'Python3_update' into python3_docs_consolidation


Compare: https://github.com/zopefoundation/RestrictedPython/compare/11c229f7d24b...fa034ab5a341


More information about the checkins mailing list