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
Ronny Pfannschmidt
378a75ddf6
run and fix tox -e regen to prepare 5.4
...
* no longer trigger deprecation warnings when looking up fixtures
* fix missed imports in a test example
2020-03-11 22:25:51 +01:00
Christoph Bülter
623b3982b0
Update doc/en/example/markers.rst
...
Co-Authored-By: Bruno Oliveira <nicoddemus@gmail.com>
2019-12-05 16:59:08 +01:00
Christoph Buelter
ac5929eef3
Update docs about case-insensitive expression matching
2019-12-05 14:13:22 +01:00
Bruno Oliveira
4b16b93cf5
Preparing release version 5.3.0
2019-11-19 12:43:51 -03:00
Bruno Oliveira
1a9f4a51cb
Preparing release version 5.1.3
2019-09-18 10:11:59 -03:00
Bruno Oliveira
e56544cb58
Preparing release version 5.1.2
2019-08-30 12:43:47 -03:00
Anthony Sottile
b135f5af8d
Preparing release version 5.1.1
2019-08-20 11:30:36 -07:00
Bruno Oliveira
eaf7ce9a99
Preparing release version 5.1.0
2019-08-15 20:00:09 -04:00
boris
3eb4973065
remove %s formatting from docs
2019-08-12 00:09:53 -06:00
boris
cf7761f91f
ran pyupgrade-docs
2019-08-06 12:40:27 -07:00
Xixi Zhao
2959fb3198
Doc fix: remove redundant parentheses.
2019-07-30 16:18:22 +08:00
Bruno Oliveira
bb29f31d22
Preparing release version 5.0.1
2019-07-04 20:01:16 -04:00
Bruno Oliveira
4d49ba6529
Drop Python 2.7 and 3.4 support
...
* Update setup.py requires and classifiers
* Drop Python 2.7 and 3.4 from CI
* Update docs dropping 2.7 and 3.4 support
* Fix mock imports and remove tests related to pypi's mock module
* Add py27 and 34 support docs to the sidebar
* Remove usage of six from tmpdir
* Remove six.PY* code blocks
* Remove sys.version_info related code
* Cleanup compat
* Remove obsolete safe_str
* Remove obsolete __unicode__ methods
* Remove compat.PY35 and compat.PY36: not really needed anymore
* Remove unused UNICODE_TYPES
* Remove Jython specific code
* Remove some Python 2 references from docs
Related to #5275
2019-06-02 14:39:11 -03:00
Bruno Oliveira
e44a2ef653
Apply suggestions from code review
...
Co-Authored-By: Daniel Hahler <github@thequod.de>
2019-05-15 20:45:22 -03:00
Bruno Oliveira
c6e3ff3ce5
Mention "-m" in the main mark docs
2019-05-15 20:45:22 -03:00
Bruno Oliveira
685ca96c71
Change ``--strict`` to ``--strict-markers``, preserving the old one
...
Fix #5023
2019-05-09 19:36:38 -03:00
Bruno Oliveira
5d7686951c
Run regendoc
2019-05-08 21:50:08 +00:00
Bruno Oliveira
9c5da9c0d1
Remove all version references to obsolete pytest versions
...
Remove version references to pytest 2 and 3.
Just like Python 3 no longer has references to Python 2, I think
we should follow the same approach in pytest.
2019-04-28 12:37:58 -03:00
Bruno Oliveira
006dc30476
Preparing release version 4.4.1
2019-04-15 14:24:17 +00:00
Anthony Sottile
8449294e5d
blacken-docs more code samples in docs
2019-04-12 04:50:26 -07:00
Daniel Hahler
befc8a3f10
Update via https://github.com/pytest-dev/regendoc/pull/8
2019-04-03 22:08:44 +02:00
Bruno Oliveira
8881b201aa
Preparing release version 4.4.0
2019-03-29 20:49:18 +00:00
Grygorii Iermolenko
6e1ee0802f
Fix sphinx code-block types for remaining rst docs
2019-02-15 15:10:37 +02:00
Bruno Oliveira
fa979a4290
Preparing release version 4.2.0
2019-01-30 14:25:38 -02:00
Bruno Oliveira
843d00c219
Fix linting
2018-12-17 10:35:17 -02:00
Kanguros
60773e0a97
Updating markers example to newest pytest version
2018-12-16 21:13:14 +01:00
Anthony Sottile
7015801377
Highlight docs with pygments-pytest
2018-11-23 22:01:30 -08:00
Bruno Oliveira
16b15af624
Preparing release version 4.0.1
2018-11-23 20:09:57 +00:00
Anthony Sottile
b3700f61ba
Fix formatting of print() calls
2018-11-22 00:15:14 -08:00
Slam
ee4f8c98a9
Adds note on multiple module marker usage
2018-11-21 14:37:28 +02:00
Bruno Oliveira
771e860011
Preparing release version 3.9.2
2018-10-22 21:47:42 +00:00
Anthony Sottile
d3673c7429
Preparing release version 3.8.2
2018-10-02 07:46:02 -07:00
Anthony Sottile
aea962dc21
Preparing release version 3.7.4
2018-08-29 08:57:54 -07:00
Bruno Oliveira
e5a3c870b4
Preparing release version 3.7.2
2018-08-16 22:29:00 +00:00
Bruno Oliveira
60b1913ba2
Preparing release version 3.7.0
2018-07-30 20:14:42 +00:00
Anthony Sottile
50f030d233
Correct code blocks in docs
2018-07-04 15:16:34 -07:00
Ronny Pfannschmidt
86fc31db8d
apply most other hooks and opt out of black reformating
2018-05-23 16:45:58 +02:00
Ronny Pfannschmidt
4914135fdf
introduce name filtering for marker iteration again
2018-05-11 21:48:15 +02:00
Ronny Pfannschmidt
7454a381e2
update configuration examples to new mark api
2018-03-30 08:36:58 +02:00
Bruno Oliveira
beacecf29b
Preparing release version 3.5.0
2018-03-21 20:46:07 +00:00
Bruno Oliveira
489e638b4e
Preparing release version 3.4.0
2018-01-30 19:47:56 +00:00
Bruno Oliveira
e0d236c031
Remove gendoc normalization for '=' and '_' headers
...
Using the default for non-atty terminals (80) so the new
progress indicator aligns correctly.
2017-11-23 15:33:41 +00:00
Xuan Luong
15222ceca2
Fix typo in example of passing a callable to markers
2017-09-09 18:22:23 -04:00
Bruno Oliveira
c52f87ede3
Preparing release version 3.2.2
2017-09-06 21:37:57 +00:00
Xuan Luong
3f8ff7f090
[DOC] Add examples for mark.with_args
2017-09-06 14:26:28 -04:00
Bruno Oliveira
07dd1ca7b8
Preparing release version 3.2.0
2017-07-30 21:37:18 +00:00
Bruno Oliveira
7082320f3f
Apply modifications requested in review
2017-07-28 07:55:34 -03:00
Bruno Oliveira
6fe7069cbb
Move historical notes to their own doc
...
Fix #2512
2017-07-27 20:47:12 -03:00
Bruno Oliveira
221f42c5ce
Change --strict help message to clarify it deals with unregistered markers
...
Fix #2444
2017-07-04 20:14:57 -03:00