test_ok2/doc/en/example
Ran Benita a718ad6363 Stop using Python's eval() for -m and -k
Previously, the expressions given to the `-m` and `-k` options were
evaluated with `eval`. This causes a few issues:

- Python keywords cannot be used.

- Constants like numbers, None, True, False are not handled correctly.

- Various syntax like numeric operators and `X if Y else Z` is supported
  unintentionally.

- `eval()` is somewhat dangerous for arbitrary input.

- Can fail in many ways so requires `except Exception`.

The format we want to support is quite simple, so change to a custom
parser. This fixes the issues above, and gives us full control of the
format, so can be documented comprehensively and even be extended in the
future if we wish.
2020-05-01 12:59:06 +03:00
..
assertion Change EnvironmentError, IOError to OSError - they are aliases 2020-03-27 18:40:23 +03:00
fixtures Add autouse fixture order information (#3404). 2019-07-13 11:43:47 +02:00
nonpython update doc examples **untested** 2019-11-23 21:54:11 +01:00
attic.rst ran pyupgrade-docs 2019-08-06 12:40:27 -07:00
conftest.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00
index.rst Do not use automatic title in fixture reference 2020-04-01 09:55:30 -04:00
markers.rst Stop using Python's eval() for -m and -k 2020-05-01 12:59:06 +03:00
multipython.py remove %s formatting from docs 2019-08-12 00:09:53 -06:00
nonpython.rst run and fix tox -e regen to prepare 5.4 2020-03-11 22:25:51 +01:00
parametrize.rst Preparing release version 5.4.0 2020-03-12 14:14:35 +00:00
pythoncollection.py pre-commit run pyupgrade --all-files 2019-06-03 12:08:02 -03:00
pythoncollection.rst Preparing release version 5.1.2 2019-08-30 12:43:47 -03:00
reportingdemo.rst Change EnvironmentError, IOError to OSError - they are aliases 2020-03-27 18:40:23 +03:00
simple.rst doc: use `envvar` directive for environment variables (#6874) 2020-03-27 02:40:25 +01:00
special.rst Preparing release version 5.1.3 2019-09-18 10:11:59 -03:00
xfail_demo.py pre-commit run fix-encoding-pragma --all-files 2019-06-03 12:08:01 -03:00