Merge pull request #884 from cpommranz/deprecate_genscript

Deprecate and warn about --genscript, fixes #730
This commit is contained in:
Floris Bruynooghe 2015-07-25 19:09:52 +02:00
commit f64d5f1209
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
2.8.0.dev (compared to 2.7.X)
-----------------------------
- fix issue730: deprecate and warn about the --genscript option.
Thanks Ronny Pfannschmidt for the report and Christian Pommranz for the PR.
- fix issue751: multiple parametrize with ids bug if it parametrizes class with
two or more test methods. Thanks Sergey Chipiga for reporting and Jan

View File

@ -1,4 +1,4 @@
""" generate a single-file self-contained version of pytest """
""" (deprecated) generate a single-file self-contained version of pytest """
import os
import sys
import pkgutil
@ -72,6 +72,8 @@ def pytest_cmdline_main(config):
genscript = config.getvalue("genscript")
if genscript:
tw = _pytest.config.create_terminal_writer(config)
tw.line("WARNING: usage of genscript is deprecated.",
red=True)
deps = ['py', 'pluggy', '_pytest', 'pytest']
if sys.version_info < (2,7):
deps.append("argparse")

View File

@ -154,7 +154,7 @@ to create a JUnitXML file that Jenkins_ can pick up and generate reports.
.. _standalone:
.. _`genscript method`:
Create a pytest standalone script
(deprecated) Create a pytest standalone script
-------------------------------------------
If you are a maintainer or application developer and want people

View File

@ -1,5 +1,5 @@
generate standalone test script to be distributed along with an application.
(deprecated) generate standalone test script to be distributed along with an application.
============================================================================