./devel/py-test, Python testing tool

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]

Branch: CURRENT, Version: 3.8.2, Package name: py27-test-3.8.2, Maintainer: pkgsrc-users

The ``py.test`` testing tool makes it easy to write small tests, yet
scales to support complex functional testing. It provides
- auto-discovery of test modules and functions,
- detailed info on failing `assert statements
(no need to remember ``self.assert*`` names)
- modular fixtures for managing small or parametrized long-lived
test resources.
- multi-paradigm support: you can use ``py.test`` to run test suites based
on unittest (or trial), nose
- single-source compatibility to Python2.4 all the way up to Python3.3,
PyPy-1.9 and Jython-2.5.1.

Required to run:
[textproc/py-expat] [devel/py-setuptools] [lang/python27] [devel/py-py] [lang/py-six] [devel/py-more-itertools] [devel/py-atomicwrites] [devel/py-pluggy] [devel/py-funcsigs] [devel/py-attrs]

Required to build:
[pkgtools/cwrappers] [devel/py-setuptools_scm]

Master sites:

SHA1: 6e28889174cfec8ca42bd470fe6168ca19aa58f9
RMD160: 394d93f3186b92e10219ebd56a26c9420c4f0ff5
Filesize: 849.285 KB

Version history: (Expand)

CVS history: (Expand)

   2018-10-03 11:58:11 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 3.8.2

pytest 3.8.2:

Deprecations and Removals
* The item parameter of pytest_warning_captured hook is now documented as \ 
deprecated. We realized only after the 3.8 release that this parameter is \ 
incompatible with pytest-xdist.

Our policy is to not deprecate features during bugfix releases, but in this case \ 
we believe it makes sense as we are only documenting it as deprecated, without \ 
issuing warnings which might potentially break test suites. This will get the \ 
word out that hook implementers should not use this parameter at all.

In a future release item will always be None and will emit a proper warning when \ 
a hook implementation makes use of it.

Bug Fixes
* Fix reload on assertion rewritten modules.
* The .user_properties attribute of TestReport objects is a list of (name, \ 
value) tuples, but could sometimes be instantiated as a tuple of tuples. It is \ 
now always a list.
* No longer issue warnings about using pytest_plugins in non-top-level \ 
directories when using --pyargs: the current --pyargs mechanism is not reliable \ 
and might give false negatives.
* Exclude empty reports for passed tests when -rP option is used.
* Improve error message when an invalid Python expression is passed to the -m option.
* MonkeyPatch.setenv and MonkeyPatch.delenv issue a warning if the environment \ 
variable name is not str on Python 2.

In Python 2, adding unicode keys to os.environ causes problems with subprocess \ 
(and possible other modules), making this a subtle bug specially susceptible \ 
when used with from __future__ import unicode_literals.

Improved Documentation
* Add possible values for fixture scope to docs.
   2018-09-24 10:06:29 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 3.8.1

pytest 3.8.1:

Bug Fixes
* .pytest_cache directory is now automatically ignored by Git. Users who would \ 
like to contribute a solution for other SCMs please consult/comment on this \ 
* Fix the following error during collection of tests inside packages:
  TypeError: object of type 'Package' has no len()
* Fix bug where indirect parametrization would consider the scope of all \ 
fixtures used by the test function to determine the parametrization scope, and \ 
not only the scope of the fixtures being parametrized.
* Fix crash of the assertion rewriter if a test changed the current working \ 
directory without restoring it afterwards.
* Fix issue that prevented some caplog properties (for example record_tuples) \ 
from being available when entering the debugger with --pdb.
* Fix UnicodeDecodeError in python2.x when a class returns a non-ascii binary \ 
__repr__ in an assertion which also contains non-ascii text.

Improved Documentation
* New Deprecations and Removals page shows all currently deprecated features, \ 
the rationale to do so, and alternatives to update your code. It also list \ 
features removed from pytest in past major releases to help those with ancient \ 
pytest versions to upgrade.

Trivial/Internal Changes
* Improve pre-commit detection for changelog filenames
* Remove legacy code around im_func as that was python2 only
   2018-09-07 10:55:43 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-test: updated to 3.8.0

pytest 3.8.0:

Deprecations and Removals
- Config.warn has been deprecated, it should be replaced by calls to the \ 
standard warnings.warn.
  Node.warn now supports two signatures:
  * node.warn(PytestWarning("some message")): is now the recommended \ 
way to call this function. The warning
    instance must be a PytestWarning or subclass  instance.
  * node.warn("CI", "some message"): this code/message form \ 
is now deprecated and should be converted to
    the warning instance form above.
  RemovedInPytest4Warning and PytestExperimentalApiWarning are now part of the \ 
public API and should be accessed
  using pytest.RemovedInPytest4Warning and pytest.PytestExperimentalApiWarning.
- @pytest.mark.filterwarnings second parameter is no longer regex-escaped,
  making it possible to actually use regular expressions to check the warning \ 
  **Note**: regex-escaping the match string was an implementation oversight that \ 
might break test suites which depend
  on the old behavior.

- Internal pytest warnings are now issued using the standard warnings module, \ 
making it possible to use
  the standard warnings filters to manage those warnings. This introduces \ 
  PytestDeprecationWarning and RemovedInPytest4Warning warning types as part of \ 
the public API.
- DeprecationWarning and PendingDeprecationWarning are now shown by default if \ 
no other warning filter is
- Add option to disable plugin auto-loading.
- Added the count option to console_output_style to enable displaying the \ 
progress as a count instead of a percentage.
- Added support for 'xfailed' and 'xpassed' outcomes to the \ 
pytester.RunResult.assert_outcomes signature.
- Terminal writer now takes into account unicode character width when writing \ 
out progress.
- Pytest now returns with correct exit code (EXIT_USAGEERROR, 4) when called \ 
with unknown arguments.
- Improve performance of assertion rewriting.

- Added a blurb in usage.rst for the usage of -r flag which is used to show an \ 
extra test summary info.
- Corrected type of the exceptions collection passed to xfail: raises argument \ 
accepts a tuple instead of list.

Trivial/Internal Changes
- Removed "run all (no recorded failures)" message printed with \ 
--failed-first and --last-failed when there are no failed tests.
   2018-08-30 12:04:44 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 3.7.4

pytest 3.7.4:

Bug Fixes
- Fix possible infinite recursion when writing .pyc files.
- Cache plugin now obeys the -q flag when --last-failed and --failed-first flags \ 
are used.
- Fix bad console output when using console_output_style=classic.
- Fix macOS specific code using capturemanager plugin in doctests.
   2018-08-28 11:52:53 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-test: DEPEND on py-pathlib2 for Python < 3.6
   2018-08-27 08:06:02 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 3.7.3

pytest 3.7.3:

Bug Fixes
* Fixtures during teardown can again use capsys and capfd to inspect output \ 
captured during tests.
* Fix collection of tests from __init__.py files if they match the python_files \ 
configuration option.
* Fix issue where teardown of fixtures of consecutive sub-packages were executed \ 
once, at the end of the outer package.
* Fix bug where --show-capture=no option would still show logs printed during \ 
fixture teardown.
* Fix stdout/stderr not getting captured when real-time cli logging is active.
* Fix collection error when specifying test functions directly in the command \ 
line using test.py::test syntax together with --doctest-modules.
* Fix bugs where unicode arguments could not be passed to testdir.runpytest on \ 
Python 2.
* Fix double collection of tests within packages when the filename starts with a \ 
capital letter.
   2018-08-19 10:12:20 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-test: updated to 3.7.2

pytest 3.7.2:

Bug Fixes
- Fix filterwarnings not being registered as a builtin mark.
- Fix test collection from packages mixed with normal directories.
- Fix infinite recursion during collection if a pytest_ignore_collect hook \ 
returns False instead of None.
- Fix bug where decorated fixtures would lose functionality (for example \ 
- Fix bug where importing modules or other objects with prefix pytest_ prefix \ 
would raise a PluginValidationError.
- Fix AttributeError during teardown of TestCase subclasses which raise an \ 
exception during __init__.
- Fix traceback reporting for exceptions with __cause__ cycles.
   2018-08-05 12:27:30 by Adam Ciarcinski | Files touched by this commit (1)
Log message:
py-test: bump py-pluggy DEPENDS