[Checkins] [zopefoundation/RestrictedPython] 02d9e2: Get rid of the `c_exec` parametrize parameter.

Michael Howitz noreply at github.com
Sat Feb 9 13:49:39 CET 2019


  Branch: refs/heads/fix-144
  Home:   https://github.com/zopefoundation/RestrictedPython
  Commit: 02d9e2f77b99341dc599c3712263ef5e1e340cc7
      https://github.com/zopefoundation/RestrictedPython/commit/02d9e2f77b99341dc599c3712263ef5e1e340cc7
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M tests/__init__.py
    M tests/test_Guards.py
    M tests/test_compile.py
    M tests/test_imports.py
    M tests/test_iterating_over_dict_items.py
    M tests/test_print_stmt.py
    M tests/transformer/test_async.py
    M tests/transformer/test_attribute.py
    M tests/transformer/test_augassign.py
    M tests/transformer/test_breakpoint.py
    M tests/transformer/test_call.py
    M tests/transformer/test_classdef.py
    M tests/transformer/test_eval_exec.py
    M tests/transformer/test_functiondef.py
    M tests/transformer/test_global_local.py
    M tests/transformer/test_import.py
    M tests/transformer/test_lambda.py
    M tests/transformer/test_name.py
    M tests/transformer/test_try.py
    M tests/transformer/test_with_stmt.py
    M tests/transformer/test_yield.py

  Log Message:
  -----------
  Get rid of the `c_exec` parametrize parameter.

It is not needed any more because if it is the only parameter.


  Commit: 9b21f0c06697a54470dddcd7179deeb7c5a35fba
      https://github.com/zopefoundation/RestrictedPython/commit/9b21f0c06697a54470dddcd7179deeb7c5a35fba
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M tests/__init__.py
    M tests/test_compile.py
    M tests/transformer/operators/test_arithmetic_operators.py

  Log Message:
  -----------
  Get rid of `c_eval` parametrize parameter.

It is not needed any more.


  Commit: 96ecef8f02178a6089e6eaa47a0cf336da2b28f3
      https://github.com/zopefoundation/RestrictedPython/commit/96ecef8f02178a6089e6eaa47a0cf336da2b28f3
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M tests/__init__.py
    M tests/test_compile_restricted_function.py

  Log Message:
  -----------
  Get rid of `c_function` parametrize parameter.

It is not needed any more.


  Commit: 5c7c1e34fdf5d8ab8addf8a6391ba2ff86482124
      https://github.com/zopefoundation/RestrictedPython/commit/5c7c1e34fdf5d8ab8addf8a6391ba2ff86482124
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M tests/__init__.py
    M tests/test_compile.py

  Log Message:
  -----------
  Get rid of `c_single` parametrize parameter.

It is not needed any more.


  Commit: 4c7e28aa1beb147aa1459a624d653e01a40582ec
      https://github.com/zopefoundation/RestrictedPython/commit/4c7e28aa1beb147aa1459a624d653e01a40582ec
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M tests/__init__.py
    A tests/helper.py
    M tests/test_Guards.py
    M tests/test_compile.py
    M tests/transformer/operators/test_arithmetic_operators.py
    M tests/transformer/operators/test_bit_wise_operators.py
    M tests/transformer/operators/test_bool_operators.py
    M tests/transformer/operators/test_comparison_operators.py
    M tests/transformer/operators/test_identity_operators.py
    M tests/transformer/operators/test_logical_operators.py
    M tests/transformer/operators/test_unary_operators.py
    M tests/transformer/test_base_types.py
    M tests/transformer/test_comparators.py
    M tests/transformer/test_slice.py

  Log Message:
  -----------
  Replace `e_eval` parametrize helper by an actual function.

This should make the code more clear.


  Commit: 6e52bba3ad60444e085aba9f8a40ac9f054302f8
      https://github.com/zopefoundation/RestrictedPython/commit/6e52bba3ad60444e085aba9f8a40ac9f054302f8
  Author: Michael Howitz <mh at gocept.com>
  Date:   2019-02-09 (Sat, 09 Feb 2019)

  Changed paths:
    M tests/__init__.py
    M tests/helper.py
    M tests/test_Guards.py
    M tests/test_imports.py
    M tests/transformer/test_assert.py
    M tests/transformer/test_assign.py
    M tests/transformer/test_attribute.py
    M tests/transformer/test_augassign.py
    M tests/transformer/test_call.py
    M tests/transformer/test_classdef.py
    M tests/transformer/test_conditional.py
    M tests/transformer/test_dict_comprehension.py
    M tests/transformer/test_functiondef.py
    M tests/transformer/test_global_local.py
    M tests/transformer/test_iterator.py
    M tests/transformer/test_lambda.py
    M tests/transformer/test_loop.py
    M tests/transformer/test_name.py
    M tests/transformer/test_subscript.py
    M tests/transformer/test_try.py
    M tests/transformer/test_with_stmt.py

  Log Message:
  -----------
  Replace `e_exec` parametrize helper by an actual function.

This should make the code more clear.
Additionally now using safe_builtins for all tests.


Compare: https://github.com/zopefoundation/RestrictedPython/compare/02d9e2f77b99%5E...6e52bba3ad60


More information about the checkins mailing list