Bruno Oliveira
997ef59306
Fix typos in CHANGELOG
2018-07-30 18:31:35 -03:00
Bruno Oliveira
60b1913ba2
Preparing release version 3.7.0
2018-07-30 20:14:42 +00:00
Bruno Oliveira
2c09930b6d
Use proper quotes for python 3.7 on travis.yml
2018-07-30 20:13:17 +00:00
Bruno Oliveira
d461e931dd
Use python 3.6 for regendoc
2018-07-30 20:12:52 +00:00
Bruno Oliveira
eada0b1fd7
Merge remote-tracking branch 'upstream/master' into release-3.7.0
2018-07-30 20:12:30 +00:00
Bruno Oliveira
150535b6c1
Merge pull request #3696 from abrammer/approx_numpy_tolerance_bugfix
...
bugfix in ApproxNumpy initialisation, use keywords for arguments to fix
2018-07-30 17:09:18 -03:00
Ronny Pfannschmidt
f1ec02cdcd
Merge pull request #3733 from nicoddemus/py37
...
Test with Python 3.7 on Travis and AppVeyor
2018-07-30 20:02:03 +02:00
Ronny Pfannschmidt
9f5d73d44a
Merge pull request #3735 from nicoddemus/deprecate-pytest-namespace
...
Deprecate pytest namespace
2018-07-30 19:55:45 +02:00
Bruno Oliveira
8609f8d25a
Move warning definition to deprecated module
2018-07-30 14:25:29 -03:00
Bruno Oliveira
953a618102
Update CHANGELOG entry about pytest_namespace deprecation
2018-07-30 12:18:37 -03:00
Bruno Oliveira
cf6d8e7e53
Fix test and update warning in pytest_namespace docs
2018-07-30 12:16:42 -03:00
Bruno Oliveira
8af78f417f
Merge pull request #3732 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-07-30 07:26:19 -03:00
abrammer
535fd1f311
may as well include inf test while we're at it
2018-07-29 23:12:04 -04:00
abrammer
762eaf443a
update changelog to include the addition of tests
2018-07-29 22:57:39 -04:00
abrammer
330640eb96
update tests to check tolerance args and expecing nan in numpy arrays
2018-07-29 22:47:38 -04:00
Bruno Oliveira
e3d412d1f4
Warn when implementations exist for pytest_namespace hook
...
This hook has been deprecated and will be removed in the future.
Fix #2639
2018-07-29 22:20:23 -03:00
Bruno Oliveira
6f9a12a8a3
Merge pull request #3486 from ammarnajjar/last-failed-no-failures_docs_correction
...
--last-failed-no-failures docs correction
2018-07-29 21:26:03 -03:00
Bruno Oliveira
0e47599572
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-07-29 21:15:51 -03:00
Bruno Oliveira
c480223e88
Test with Python 3.7 on Travis and AppVeyor
2018-07-29 21:14:38 -03:00
Bruno Oliveira
0b522d40a7
Merge pull request #3734 from nicoddemus/fix-docs
...
Fix reference to _Result in docs
2018-07-29 21:14:09 -03:00
Bruno Oliveira
d900a6c8bd
Merge pull request #3731 from asottile/pygrep_hooks
...
Use upstream rst-backticks hook
2018-07-29 20:52:28 -03:00
Bruno Oliveira
fe46fbb719
Fix reference to _Result in docs
2018-07-29 20:50:24 -03:00
Anthony Sottile
8d401cdb9d
Use upstream rst-backticks hook
2018-07-29 15:46:06 -07:00
Bruno Oliveira
3f3f6f1be4
Merge pull request #3729 from nicoddemus/fix-changelog-titles
...
Fix "Pytest" to "pytest" in the CHANGELOG
2018-07-29 19:42:24 -03:00
Bruno Oliveira
b6da5cc54c
Fix "Pytest" to "pytest" in the CHANGELOG
...
Now that we have fixed towncrier to render the proper title, seems fitting
to update the others
2018-07-28 12:57:18 -03:00
Bruno Oliveira
eaeeedc9c3
Merge pull request #3728 from nicoddemus/release-3.6.4
...
Release 3.6.4
2018-07-28 12:53:49 -03:00
Bruno Oliveira
317cd41215
Preparing release version 3.6.4
2018-07-28 12:59:04 +00:00
Bruno Oliveira
7f27512a48
Pin pluggy to <0.8
2018-07-28 09:46:35 -03:00
Kale Kundert
bf127a63b2
Need to iterate over the flattened array.
2018-07-27 11:24:42 -07:00
Bruno Oliveira
fe16f81da1
Merge pull request #3705 from nicoddemus/deprecate-call-fixture-func
...
Deprecate calling fixture functions directly
2018-07-27 15:09:09 -03:00
Bruno Oliveira
d0ba242c46
Implement change suggested by @kalekundert in PR
2018-07-27 15:07:20 -03:00
Bruno Oliveira
fe06be8590
Merge pull request #3723 from pytest-dev/nicoddemus-patch-1
...
Use "pytest" on the CHANGELOG
2018-07-27 10:23:11 -03:00
Bruno Oliveira
79b4ca92d8
Use "pytest" on the CHANGELOG
2018-07-27 09:21:18 -03:00
Bruno Oliveira
57b0c60cb4
Remove Testdir.run_example as recommended
2018-07-26 20:10:40 -03:00
Bruno Oliveira
6e57d123bb
Mark test_idval_hypothesis as flaky on Windows ( #3707 )
2018-07-26 19:58:42 -03:00
Bruno Oliveira
011f88f7e7
Deprecate calling fixture functions directly
...
This will now issue a RemovedInPytest4Warning when the user calls
a fixture function directly, instead of requesting it from test
functions as is expected
Fix #3661
2018-07-26 19:58:42 -03:00
Bruno Oliveira
2eb9301ad5
Improve CHANGELOG
2018-07-25 08:09:31 -03:00
abrammer
f0db64ac2e
drop the duplicate approx call
...
update test to include both np.array(actual) and np.array(expected)
2018-07-24 21:18:44 -04:00
abrammer
514ca6f4ad
add test wrt #3695 checking numpy array tolerance args
2018-07-23 23:40:06 -04:00
Bruno Oliveira
b7419bd9bb
Merge pull request #3710 from bmwiedemann/date
...
Do not claim copyright for future years
2018-07-23 11:14:39 -03:00
Bernhard M. Wiedemann
2e344d4d63
Do not claim copyright for future years
...
When building today's python-pytest-doc openSUSE package
in the year 2033, the documentation .html files state
Copyright 2015-2033 , holger krekel and pytest-dev team.
That cannot be correct, because nobody did anything copyright-worthy
for this file in 2033.
See also https://stackoverflow.com/questions/2390230/do-copyright-dates-need-to-be-updated
Additionally, this change makes the package build reproducible.
See https://reproducible-builds.org/ for why this is good.
2018-07-23 15:02:59 +02:00
Ronny Pfannschmidt
f8749eeb5c
Merge pull request #3708 from nicoddemus/small-refactors
...
Small refactorings
2018-07-23 06:53:08 +02:00
Anthony Sottile
f76142508f
Merge pull request #3694 from drewrisinger/patch-2
...
Fix mark.rst typos & grammar
2018-07-22 09:15:33 -07:00
Anthony Sottile
be2afb950a
Merge pull request #3706 from ehershey/patch-1
...
typo - $PYTEST_ADDOTPS -> $PYTEST_ADDOPTS
2018-07-22 09:03:23 -07:00
E Hershey
19de1b7f29
typo - PYTEST_ADDOTPS -> PYTEST_ADDOPTS
2018-07-22 11:39:32 -04:00
Bruno Oliveira
f5165064ee
Make yield_fixture just call fixture to do its work
...
Since fixture and yield_fixture are identical, they should call
the same code; as it was, the code inside them was already starting
to deviate.
2018-07-22 09:41:03 -03:00
Bruno Oliveira
c9a0881309
Isolate the code that resolves the fixturefunc to a separate function
...
pytest_fixture_setup was somewhat convoluted because it was trying
to do too many things.
2018-07-22 09:37:41 -03:00
Bruno Oliveira
5167933395
Move teardown code of yield fixtures to a partial to avoid leaks
...
As it were before, it was keeping a reference to fixturefunc and it
alive when an error occurred
2018-07-22 09:27:34 -03:00
Alan Brammer
75db608479
update changelog
2018-07-18 17:56:00 -04:00
Alan
7bff5866b1
bugfix in ApproxNumpy initialisation, use keywords for arguments now
2018-07-18 17:29:55 -04:00
Anthony Sottile
9720c3301a
Merge pull request #3690 from drewrisinger/patch-1
...
Fix fixture.rst typos & grammar
2018-07-17 18:13:41 -07:00
Drew
254689ff83
Fix mark.rst typos & grammar
...
Fix minor typos
2018-07-17 11:19:40 -04:00
Drew
21f5222784
Fix fixture.rst spelling & grammar
...
Fix a few typos.
2018-07-17 10:53:57 -04:00
Bruno Oliveira
0bb29d5649
Merge pull request #3685 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-07-15 16:53:39 -03:00
Bruno Oliveira
db33f03c15
Merge pull request #3681 from tadeoos/980-fix-truncated-locals-in-verbose
...
Fix truncated locals in verbose mode
2018-07-15 14:43:15 -03:00
Bruno Oliveira
ac9ceaacd8
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-07-15 11:54:14 -03:00
Bruno Oliveira
771d3e8f4f
Merge pull request #3684 from Vlad-Shcherbina/type_comments
...
Replace broken type annotations with type comments
2018-07-15 11:52:12 -03:00
Bruno Oliveira
82a11e6207
Merge pull request #3680 from nicoddemus/labels
...
Manage GH labels using the new 'labels' tool
2018-07-15 11:34:20 -03:00
Bruno Oliveira
a1c3df1889
Merge pull request #3683 from caramelomartins/master
...
[#3402 ] CITATION
2018-07-15 11:33:06 -03:00
Bruno Oliveira
a821af6b1c
Merge pull request #3682 from nicoddemus/tox-release
...
Revamp the release script: drop invoke and use tox directly
2018-07-15 11:32:20 -03:00
Tadek Teleżyński
d2fe619120
Fix truncated locals in verbose mode
2018-07-15 11:30:26 -03:00
Vlad Shcherbina
58e77f58bd
Replace broken type annotations with type comments
...
Fixes #3635 .
2018-07-15 16:58:39 +03:00
Hugo Martins
6a4fa4f485
Fix more linting issues
2018-07-14 16:44:47 +01:00
Hugo Martins
5be03bff61
Add changelog information
2018-07-14 16:37:55 +01:00
Hugo Martins
e9fd038aae
Fix linting issues
2018-07-14 16:35:33 +01:00
Hugo Martins
a8464a95ce
Add CITATION
...
Relates to #3402
2018-07-14 16:32:29 +01:00
Bruno Oliveira
a0b0c37feb
Revamp the release script: drop invoke and use tox directly
...
Following the lead from tox, use a simple Python script instead of depending
on ``invoke``.
Other changes:
* Some colors using ``colorama``.
* Run ``pre-commit`` before the final commit to ensure everything is neatly
formatted.
* Drop generating local tag: legacy from the time we used ``devpi`` as staging
area, currently we no longer use it, and we should push a
tag from the last HEAD of the PR always to ensure it is correct.
2018-07-14 11:35:37 -03:00
Bruno Oliveira
35ffd29404
Manage GH labels using the new 'labels' tool
2018-07-14 10:12:52 -03:00
Bruno Oliveira
0565a7a4e1
Merge pull request #3679 from nicoddemus/parametrized-internal-refactor
...
Refactor parametrize() code for readability
2018-07-12 21:31:06 -03:00
Bruno Oliveira
6c3713226c
Merge pull request #3642 from caramelomartins/master
...
Fixes # 3592 - Clarify Fixtures' Documentation
2018-07-11 23:31:51 -03:00
Bruno Oliveira
f6ceedd15b
Merge pull request #3636 from RonnyPfannschmidt/fixturetest-examples
...
[RFC] Fixturetest examples - move test contents to use example scripts for contents
2018-07-11 23:29:33 -03:00
Bruno Oliveira
3e599dc149
Check that param sets match number of args during _for_parametrize
...
It makes sense to validate them during creation of the parameter set
2018-07-11 22:57:53 -03:00
Bruno Oliveira
54fbc6f6e1
Refactor parametrize() code for readability
...
Extract the parametrize() block of code into methods for better
readability
2018-07-11 21:29:21 -03:00
Bruno Oliveira
aa47b64e2a
Improve CHANGELOG entry
2018-07-11 21:07:21 -03:00
Bruno Oliveira
251adbf644
Merge with upstream/master
2018-07-11 20:46:14 -03:00
Bruno Oliveira
2c4759ce57
Run regendocs
2018-07-11 20:37:50 -03:00
Bruno Oliveira
4dfe2eee94
Fix finalize call
2018-07-11 20:24:39 -03:00
Bruno Oliveira
5226c7fac3
Merge pull request #3665 from nicoddemus/changelog-tweaks
...
Small tweaks to the changelog entries
2018-07-10 21:12:50 -03:00
Bruno Oliveira
593b451373
Merge pull request #3670 from asottile/remove_unused_fix_lint
...
Remove unused fix-lint tox environment
2018-07-10 19:08:31 -03:00
Anthony Sottile
898544e147
Merge pull request #3669 from asottile/yesqa
...
Remove some extraneous `# noqa` comments
2018-07-10 14:53:08 -07:00
Anthony Sottile
61301d934e
Remove some extraneous # noqa comments
...
This was partially automated with https://github.com/asottile/yesqa
_with a few caveats_:
- it was run under python2 (chosen arbitrarily, when run under python3 other
things were changed)
- I used `git checkout -p` to revert the removal of `noqa` comments from
`cmp()` lines.
2018-07-08 17:05:52 -07:00
Anthony Sottile
af0059079c
Remove unused fix-lint tox environment
2018-07-08 17:05:01 -07:00
Bruno Oliveira
9ef7878cbc
Merge pull request #3668 from asottile/remove_obsolete_future_imports
...
Remove obsolete __future__ imports
2018-07-08 13:41:59 -03:00
Anthony Sottile
4ae93a7a07
Remove obsolete __future__ imports
2018-07-08 08:37:02 -07:00
Bruno Oliveira
d4faa4056b
Merge pull request #3667 from asottile/avoid_sys_path_pollution_742
...
Use -mpytest when invoking pytest in pytester
2018-07-08 11:51:16 -03:00
Anthony Sottile
42bbb4fa8a
Use -mpytest when invoking pytest in pytester
2018-07-07 17:18:44 -07:00
Bruno Oliveira
12c5b6104c
Merge pull request #3666 from nicoddemus/deploy-on-tags
...
Skip deploy stage entirely unless we have a tag
2018-07-07 20:40:14 -03:00
Bruno Oliveira
aa9d1ad2eb
Merge pull request #3663 from nicoddemus/usefixtures-reference
...
Add reference docs for pytest.mark.usefixtures
2018-07-07 12:12:31 -03:00
Bruno Oliveira
49e82a4be8
Skip deploy stage entirely unless we have a tag
...
Borrowed from https://github.com/tox-dev/tox/pull/877
2018-07-07 12:12:07 -03:00
Bruno Oliveira
803302e70c
Fix end-of-line in 2220.bugfix.rst
2018-07-07 11:13:48 -03:00
Bruno Oliveira
05f1d0d3ef
Update README for CHANGELOG about using multiple paragraphs
2018-07-07 11:07:13 -03:00
Bruno Oliveira
1cd62f8c38
Update CHANGELOG template to put issue links at the start of entries
...
This allows us to use the new multi-line entries available with
towncrier 18.6.0
2018-07-07 11:02:33 -03:00
Bruno Oliveira
a522fc745a
Small tweaks to the changelog entries
2018-07-07 10:43:37 -03:00
Bruno Oliveira
303133f013
Merge pull request #3647 from jeffreyrack/3610-add-trace-option
...
3610 add trace option
2018-07-07 10:05:34 -03:00
Bruno Oliveira
d26a596072
Add a warning about usefixtures mark not working in fixtures
...
Fix #1014
2018-07-07 10:01:10 -03:00
Bruno Oliveira
f359b50fe5
Adjust copyright in README
2018-07-06 21:03:27 -03:00
Bruno Oliveira
18b2fc11ad
Dummy change
2018-07-06 20:57:30 -03:00
Bruno Oliveira
d7b722e2ae
Add reference docs for pytest.mark.usefixtures
2018-07-06 20:55:42 -03:00
Ronny Pfannschmidt
1e94ac784f
Merge pull request #3389 from jonozzz/features
...
Add package scoped fixtures #2283
2018-07-06 11:42:36 +02:00
Bruno Oliveira
027d2336b8
Add minimal docs for package-scoped fixtures (experimental)
2018-07-05 21:56:31 -03:00
Bruno Oliveira
3c19370cec
Merge remote-tracking branch 'upstream/features' into jonozzz/features
2018-07-05 18:15:17 -03:00
Bruno Oliveira
7e8f7bfa16
Merge pull request #3660 from asottile/code_highlight_fix
...
Correct code blocks in docs
2018-07-05 07:17:03 -03:00
Bruno Oliveira
3f5e06ecc4
Merge pull request #3659 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-07-04 21:11:28 -03:00
Anthony Sottile
50f030d233
Correct code blocks in docs
2018-07-04 15:16:34 -07:00
Bruno Oliveira
7696d5371a
Merge remote-tracking branch 'upstream/master' into features
2018-07-04 18:49:35 -03:00
Bruno Oliveira
b64c26674d
Merge pull request #3656 from nicoddemus/release-3.6.3
...
Release 3.6.3
2018-07-04 18:45:45 -03:00
Bruno Oliveira
63b25304c3
Run pre-commit fixers
2018-07-03 22:20:29 -03:00
Bruno Oliveira
73d787df3a
HOWTORELEASE: create branch first and run pre-commit after generate-release task
...
This makes more sense because we need to install from
tasks/requirements.txt
2018-07-03 22:15:23 -03:00
Bruno Oliveira
fa3161011a
Improve CHANGELOG for 3.6.3
2018-07-03 22:07:51 -03:00
Bruno Oliveira
2921ca6e64
Run pre-commit on all doc files
2018-07-03 21:58:18 -03:00
Bruno Oliveira
43c0346d68
Preparing release version 3.6.3
2018-07-04 00:51:21 +00:00
Bruno Oliveira
3ed8e28ef3
Merge pull request #3654 from LeastAuthority/3653.deprecated-convert
...
Switch to new API
2018-07-03 21:46:26 -03:00
Bruno Oliveira
b84a646389
Add note to the changelog
2018-07-03 21:08:27 -03:00
Hugo Martins
8232fd1a2d
Fix remaining "smtp" references
2018-07-03 23:24:59 +01:00
Hugo Martins
f52a5d3be2
Merge remote-tracking branch 'upstream/master'
2018-07-03 23:11:35 +01:00
Jean-Paul Calderone
b815f67e65
add changelog
2018-07-03 13:40:04 -04:00
Jean-Paul Calderone
55ebf261ce
Switch to new API
2018-07-03 13:37:03 -04:00
Jeffrey Rackauckas
067de257e1
Fix test_pdb.py with pexpect
2018-07-02 21:03:21 -07:00
Jeffrey Rackauckas
4a925ef5e9
Fixing bug in test.
2018-07-02 20:29:59 -07:00
Jeffrey Rackauckas
4afb8c428b
Fix python 2 issues
2018-07-02 20:20:42 -07:00
Jeffrey Rackauckas
2f1a2cf07f
Fixing --trace test.
2018-07-02 19:55:08 -07:00
Jeffrey Rackauckas
6cc4fe2412
Fixing bad indentation
2018-07-02 19:53:46 -07:00
Jeffrey Rackauckas
10a8691eca
Add support for yielded functions.
2018-07-02 19:46:26 -07:00
Jeffrey Rackauckas
b75320ba95
Fix --trace option with yield tests.
2018-07-02 19:08:41 -07:00
Bruno Oliveira
b50911285a
Merge pull request #3648 from eelstork/patch-1
...
Fix monkeypatch doc
2018-07-02 10:34:05 -03:00
T.E.A de Souza
a43205b4bc
Fix monkeypatch doc
...
`delenv` is incorrectly documented.
2018-07-02 21:01:41 +08:00
Jeffrey Rackauckas
bc268a58d1
Adding needed newline
2018-07-01 20:22:50 -07:00
Jeffrey Rackauckas
0b70477930
Fix linting issues.
2018-07-01 20:18:00 -07:00
Jeffrey Rackauckas
8801162275
Fixing tabbing in usage.rst.
2018-07-01 18:54:04 -07:00
Jeffrey Rackauckas
a604a71185
Fixing usage.rst title.
2018-07-01 18:53:18 -07:00
Jeffrey Rackauckas
66fa6bb42e
Fix flake8 issues.
2018-07-01 18:50:57 -07:00
Jeffrey Rackauckas
713d32c4da
Adding documentation for the --trace option.
2018-07-01 18:49:39 -07:00
Jeffrey Rackauckas
57198d477b
Adding changelog entry for the --trace option.
2018-07-01 12:14:35 -07:00
Jeffrey Rackauckas
533f4cc10c
Fix test to pass
2018-06-30 21:36:27 -07:00
Jeffrey Rackauckas
a46b94950c
Properly set immediately_break value
2018-06-30 21:32:25 -07:00
Jeffrey Rackauckas
952bbefaac
Add initial test.
2018-06-30 18:26:58 -07:00
Jeffrey Rackauckas
54d3cd587d
Adding the --trace option.
2018-06-30 18:09:06 -07:00
Bruno Oliveira
2b75a311a7
Merge pull request #3637 from RonnyPfannschmidt/fix-3631
...
fix #3631 - don't store legacy markinfo when its impossible
2018-06-30 17:48:46 -03:00
Bruno Oliveira
26e1784e52
Merge pull request #3641 from Sup3rGeo/bugfix/logfile-unicode
...
Fixes #3630
2018-06-30 17:47:24 -03:00
victor
dad3e77319
Improve test readability.
2018-06-30 18:57:24 +02:00
Victor
3a1c15316b
Updated test for python 2.7
2018-06-30 16:11:20 +02:00
Hugo Martins
f7c929c932
Fix linting errors in docs/fixtures.rst
2018-06-30 14:34:19 +01:00
Hugo Martins
b48f1d378b
Clarify examples in fixtures' documentation
2018-06-30 02:01:49 +01:00
Victor
a6636fddcd
Fixed open function with encoding in python 2.7
2018-06-29 17:04:30 +02:00
Victor
738933938a
Added changelog.
2018-06-29 16:18:16 +02:00
Victor
342f2cdc17
Fixes #3630
2018-06-29 16:09:39 +02:00
Ronny Pfannschmidt
5bd5b8c68a
fix #3631 - don't store legacy markinfo when its impossible
2018-06-29 14:01:20 +02:00
Ronny Pfannschmidt
0fd86ec8a8
move some fill fixture acceptance tests contents to the examples script folder
2018-06-29 10:58:33 +02:00
Ronny Pfannschmidt
4ae7e9788c
fix quotes in scope order test
2018-06-29 07:13:18 +02:00
Ronny Pfannschmidt
5582ad0445
remove use of formatting in test_func_closure_module_auto
...
this makes it apparent that pytester should supply some kind of variable support
2018-06-29 07:07:03 +02:00
Ronny Pfannschmidt
982b614010
remove format calls for most fixture tests
2018-06-29 07:07:03 +02:00
Ronny Pfannschmidt
7845ab4bc3
remove test file formatting from TestContextManagerFixtureFuncs
2018-06-29 07:07:03 +02:00
Bruno Oliveira
8680dfc939
Merge pull request #3629 from egnartsms/issue-2220-param-breaks-dep
...
Make test parametrization override indirect fixtures
2018-06-28 21:43:21 -03:00
Serhii Mozghovyi
76ac670f7d
Add changelog description
2018-06-28 23:42:18 +03:00
Bruno Oliveira
7b47dfb744
Merge pull request #3634 from RonnyPfannschmidt/merge-from-master
...
Merge from master
2018-06-28 14:05:18 -03:00
Ronny Pfannschmidt
3c73d6298a
merge from master to features
2018-06-28 17:32:41 +02:00
Serhii Mozghovyi
c220fb235a
Minor fix (code improvement)
2018-06-28 14:53:06 +03:00
Serhii Mozghovyi
1dc5e97ac2
Make test parametrization override indirect fixtures
2018-06-28 14:32:29 +03:00
Bruno Oliveira
e9371a58a0
Merge pull request #3622 from RonnyPfannschmidt/builtin-serialize
...
move report classes to own file to prepare for serialisazion
2018-06-27 15:17:09 -03:00
Bruno Oliveira
a48c47b53b
Merge pull request #3624 from nicoddemus/skip-appveyor-tags
...
Skip AppVeyor builds on tag pushes
2018-06-27 12:12:21 -03:00
Bruno Oliveira
ea379ba10f
Merge pull request #3623 from RonnyPfannschmidt/pytester-runexamples
...
Pytester runexamples
2018-06-27 09:13:29 -03:00
Bruno Oliveira
9a56bb05be
Skip AppVeyor builds on tag pushes
...
We don't deploy anything on tags with AppVeyor, we use Travis instead, so we
might as well save resources
2018-06-27 08:28:34 -03:00
Ronny Pfannschmidt
17e01993d9
regendoc and invocation fixes
2018-06-27 08:28:21 +02:00
Ronny Pfannschmidt
8a6345515b
regendoc
2018-06-27 06:52:54 +02:00
Ronny Pfannschmidt
581d49635e
add docs and changelog
2018-06-27 06:52:36 +02:00
Bruno Oliveira
ef1b91ba87
Merge pull request #3606 from RonnyPfannschmidt/fix-3605
...
Fix 3605
2018-06-26 22:14:28 -03:00
Ronny Pfannschmidt
e860ff7299
port some acceptance tests over to copy_example
2018-06-26 22:59:40 +02:00
Ronny Pfannschmidt
0672bc633f
enable pytester to run examples copied from the cwd
2018-06-26 22:48:33 +02:00
Ronny Pfannschmidt
2dfb52f7e0
fix rebase artifacts
2018-06-26 22:10:26 +02:00
Ronny Pfannschmidt
cc6eb9f83c
move test reports to own file
2018-06-26 22:09:15 +02:00
Ronny Pfannschmidt
643e5a9c44
fix docs
2018-06-26 21:57:31 +02:00
Ronny Pfannschmidt
b8486037d3
fix #3605 - unpack markdecorators from parameterization
2018-06-26 21:57:31 +02:00
Ronny Pfannschmidt
78a82c05ef
consistent failure on all python versions for test_markers_from_parametrize
2018-06-26 21:57:31 +02:00
Ronny Pfannschmidt
853975d93b
add failing test for #3605
2018-06-26 21:57:31 +02:00
Ronny Pfannschmidt
6b239263da
Merge pull request #3620 from RonnyPfannschmidt/merge-from-master
...
Merge from master
2018-06-26 21:56:09 +02:00
Ronny Pfannschmidt
89e0a3ec27
merge from master to features
2018-06-26 17:01:05 +02:00
Ronny Pfannschmidt
f93995e15c
Merge pull request #3614 from asottile/upgrade_hooks
...
Upgrade hooks
2018-06-26 16:30:56 +02:00
Anthony Sottile
f940967e23
Fix test offset after black moved code
2018-06-26 06:35:48 -07:00
Anthony Sottile
cbaa7dd56a
Upgrade pre-commit hooks except pyupgrade
2018-06-26 06:35:27 -07:00
Ronny Pfannschmidt
8133d1955e
Merge pull request #3615 from marcelotrevisani/bug-3593-pytest-approx
...
Bug fix #3593 - approx repr in a 0-d numpy array
2018-06-26 13:04:23 +02:00
Bruno Oliveira
738b715655
Merge pull request #3619 from jdufresne/pypi
...
Update pypi.python.org URLs to pypi.org
2018-06-26 00:00:52 -03:00
Jon Dufresne
1d5316a28b
Update pypi.python.org URLs to pypi.org
...
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-06-25 18:08:49 -07:00
Marcelo Duarte Trevisani
0030ceb11c
Bug fix #3593 - approx method in a single element of numpy array
...
If the user pass as a expected value a numpy array created like
numpy.array(5); it will creates an array with one element without shape,
when used with approx it will raise an error
'TypeError: iteration over a 0-d array'
2018-06-25 22:55:16 +02:00
Bruno Oliveira
5b186cd609
Merge pull request #3594 from pytest-dev/interal-pathlib
...
[WIP] port cache plugin internals to pathlib
2018-06-25 11:09:36 -03:00
Ronny Pfannschmidt
5a156b3645
disable pypy on windows until scandir works for it
2018-06-24 22:54:26 +02:00
Ronny Pfannschmidt
42b3125783
Merge pull request #3612 from mimi1vx/patch-1
...
Prefer unittest.mock before mock
2018-06-24 16:33:49 +02:00
Bruno Oliveira
50a0d4fa95
Merge pull request #3613 from asottile/module_spec_warnings
...
Fix `ImportWarning` triggered by explicit relative imports
2018-06-23 18:27:19 -03:00
Ondřej Súkup
deff54aae0
Try import mock, but on python 3.3+ can use also stdlib unittest.mock
...
From Python 3.3 is mock part of python standard library in unittest namespace
2018-06-23 23:27:07 +02:00
Anthony Sottile
22a2734d9a
Merge pull request #3611 from AdamEr8/doc-fix-skipif
...
Doc Fix: skipif's example description
2018-06-23 14:06:30 -07:00
Anthony Sottile
17985b893d
Remove warning filter as well
2018-06-23 10:22:09 -07:00
Anthony Sottile
1d55c49a9a
Fix ImportWarning triggered by explicit relative imports
2018-06-23 07:55:49 -07:00
Ronny Pfannschmidt
95f00de0df
use paths for config.cache.get key
2018-06-23 00:14:06 +02:00
Ronny Pfannschmidt
c4c666cbc4
use Pathlib instead of path splitting
2018-06-23 00:07:57 +02:00
Ronny Pfannschmidt
ee30bf45c9
rebase onto readme addition
2018-06-23 00:03:10 +02:00
Ronny Pfannschmidt
603df1ea1c
whops, its supported starting with python 3.6, not python 3.5
2018-06-22 23:56:22 +02:00
Ronny Pfannschmidt
abbf73ad1a
use pathlib2 up to python3.4 - damn the stdlib
2018-06-22 23:56:22 +02:00
Ronny Pfannschmidt
1226cdab47
fix warnings and json dumping of cacheprovider
2018-06-22 23:56:22 +02:00
Ronny Pfannschmidt
ab80e0fba0
sort compat flake8 mess correctly
2018-06-22 23:56:22 +02:00
Ronny Pfannschmidt
fb992a0c81
reorder attr.ib specs
2018-06-22 23:56:22 +02:00
Ronny Pfannschmidt
23581d44bd
add missed file
2018-06-22 23:56:22 +02:00
Ronny Pfannschmidt
c7eb53317b
port cache plugin internals to pathlib
...
warning logging got broken by detanglement from config
2018-06-22 23:56:22 +02:00
Bruno Oliveira
8cc210708c
Improve changelog and change it to doc
2018-06-22 09:14:59 -03:00
Bruno Oliveira
4970f6d5c2
Improve reason in skipif example
2018-06-22 09:14:12 -03:00
AdamEr8
f883628939
Changelog mistake
...
Used pytest.fixture.skipif instead of pytest.mark.skipif
2018-06-22 08:51:26 +03:00
AdamEr8
40839b5a3a
Rename prnum.trivial.rst to 3611.trivial.rst
2018-06-22 08:46:34 +03:00
AdamEr8
5e56d77542
Create prnum.trivial.rst
...
Added changelog file
2018-06-22 08:33:35 +03:00
Bruno Oliveira
de98939ebf
Merge pull request #3608 from avirlrma/features
...
add reamde for .pytest_cache
2018-06-21 21:05:23 -03:00
Bruno Oliveira
0d3914b626
Remove extra '\' left at the end of a line in cache's readme contents
2018-06-21 20:12:50 -03:00
Bruno Oliveira
eb94bce3e2
Change 3519 to trivial
2018-06-21 20:11:22 -03:00
Bruno Oliveira
b897008887
Improve CHANGELOG grammar
2018-06-21 20:09:32 -03:00
Anthony Sottile
630428c611
Merge pull request #3609 from asottile/remove_warning_py2_functools_reduce
...
Silence usage of `reduce` warning in python 2
2018-06-21 15:08:31 -07:00
Anthony Sottile
8b4c59e606
Silence usage of reduce warning in python 2
2018-06-21 13:27:00 -07:00
avirlrma
998d540b73
fixed changelog entry
2018-06-21 17:56:26 +05:30
avirlrma
c672bfa32e
added changelog entry
...
moved cache readme tests to test_cacheprovider.py
2018-06-21 17:43:10 +05:30
avirlrma
8f1d8ac970
fixed linting errors
...
ran black
removed unused imports and variables
2018-06-21 15:15:55 +05:30
AdamEr8
1ac1ee6fcb
Fixed text description above skipif's example
...
@pytest.mark.skipif's example's description (above the code) was the opposite of the condition in the code,
fixed the description to match the code.
2018-06-21 12:09:56 +03:00
avirlrma
53d4710c62
added tests for .pytest_cache README
...
Helper class to check if readme exists in .pytest_cache directory
Tests to check for readme when tests pass and when they fail
2018-06-21 14:25:00 +05:30
avirlrma
31f089db6a
add reamde for .pytest_cache
...
method - `ensure_readme()`
2018-06-21 13:14:58 +05:30
Ronny Pfannschmidt
b7b9c54d27
Merge pull request #3603 from nicoddemus/fix-freeze-job
...
Fix reference to py36-freeze in travis and appveyor
2018-06-21 09:33:59 +02:00
Ronny Pfannschmidt
e86fe38144
Merge pull request #3598 from nicoddemus/small-callspec2-cleanup
...
Remove unused attribute and parameter in CallSpec2
2018-06-20 18:04:34 +02:00
Bruno Oliveira
5b26178397
Merge pull request #3602 from nicoddemus/release-3.6.2
...
Release 3.6.2
2018-06-20 08:12:43 -03:00
Bruno Oliveira
130100bba1
Fix reference to py36-freeze in travis and appveyor
...
Travis and AppVeyor were executing "py35-freeze", which does not actually
exist in tox.ini.
2018-06-20 07:53:41 -03:00
Bruno Oliveira
46aa18dfa7
Lint regendoc changes
2018-06-19 21:34:03 -03:00
Bruno Oliveira
617a5fcf98
Preparing release version 3.6.2
2018-06-20 00:29:58 +00:00
Bruno Oliveira
19ba243cae
Merge pull request #3600 from RonnyPfannschmidt/pyproject-compliance
...
add build-system section to pyproject.toml
2018-06-19 06:58:28 -03:00
Ronny Pfannschmidt
af5d41fdfd
add build-system section to pyproject.toml
...
this makes the file valid and prepares for https://github.com/pypa/pip/issues/5416 and https://github.com/pypa/pip/pull/5512
2018-06-19 10:41:04 +02:00
Bruno Oliveira
85be8bdf49
Merge pull request #3599 from pytest-dev/asottile-patch-1
...
Use --show-diff-on-failure for pre-commit CI invocation
2018-06-18 23:31:01 -03:00
Anthony Sottile
8e9f1d2417
Use --show-diff-on-failure for pre-commit CI invocation
2018-06-18 18:27:48 -07:00
Bruno Oliveira
93e55ad2fa
Remove unused attribute and parameter in CallSpec2
2018-06-18 21:48:49 -03:00
Bruno Oliveira
2925f3057f
Merge pull request #3584 from jwodder/fix-3583
...
Fix encoding error with `print` statements in doctests
2018-06-18 08:03:07 -03:00
Anthony Sottile
a93ad1fb77
Merge pull request #3590 from alexbarbato/3525_typo_fixture_docs
...
3525 typo fixture docs
2018-06-16 13:28:21 -07:00
Alex Barbato
561db95521
Add changelog file.
2018-06-16 12:44:19 -04:00
Alex Barbato
9408291c50
Fixing parens typo in fixture.rst
2018-06-16 12:40:25 -04:00
Ronny Pfannschmidt
4dc7b4ace6
Merge pull request #3589 from hynek/master
...
Fix 2 DeprecationWarnings about invalid escape seq
2018-06-16 11:56:35 +02:00
Hynek Schlawack
acb8f23311
Fix 2 DeprecationWarnings about invalid escape seq
2018-06-16 10:37:33 +02:00
Bruno Oliveira
9d60cf25c0
Merge pull request #2207 from RonnyPfannschmidt/fix/519
...
add example scripts for issue #519
2018-06-15 15:05:18 -03:00
Bruno Oliveira
9e32b6ae48
Small typo and grammar fix
2018-06-15 15:05:00 -03:00
Ronny Pfannschmidt
99402cf1c0
add a readme to the example scripts
2018-06-15 20:02:01 +02:00
Anthony Sottile
b285078db4
Merge pull request #3535 from RonnyPfannschmidt/config-split
...
begin to turn config into package
2018-06-15 10:28:06 -07:00
John T. Wodder II
d382f3e77f
[ #3583 ] Fix encoding error with print statements in doctests
...
This fix was suggested by Stack Overflow user phd in
<https://stackoverflow.com/a/50863820/744178 >.
2018-06-15 17:23:54 +00:00
John T. Wodder II
5221a14764
Failing test case for #3583
2018-06-15 17:23:49 +00:00
Ronny Pfannschmidt
3ac2ae3c8c
black
2018-06-15 18:13:45 +02:00
Ronny Pfannschmidt
ea906056fa
add the actually expected fixtureorder for #519
2018-06-15 18:04:24 +02:00
Ronny Pfannschmidt
c081c5ee23
add example scripts for issue #519
2018-06-15 18:04:24 +02:00
Bruno Oliveira
3dcdaab103
Merge pull request #3585 from wcooley/feature/3579-caplog-messages
...
Add `messages` property to `caplog` fixture.
2018-06-15 12:41:33 -03:00
Wil Cooley
3615977608
Add messages property to caplog fixture.
2018-06-14 12:22:33 -07:00
Bruno Oliveira
94c41bec64
Merge pull request #3576 from RonnyPfannschmidt/addmarker-api
...
fix addmarker - extract mark from markdecorator
2018-06-13 18:36:40 -03:00
Ronny Pfannschmidt
8d072205e9
fix whitespace
2018-06-13 22:00:22 +02:00
Bruno Oliveira
b5102d03a6
Fix add_marker docs
2018-06-13 14:57:10 -03:00
Ronny Pfannschmidt
791bb3502c
changelog
2018-06-13 17:29:42 +02:00
Ronny Pfannschmidt
eb0c6a8287
fix addmarker - extract mark from markdecorator
2018-06-13 17:27:00 +02:00
Bruno Oliveira
4d0297b413
Merge pull request #3577 from RonnyPfannschmidt/addmarker-fix
...
fix addmarker - extract mark from markdecorator
2018-06-13 07:30:22 -03:00
Bruno Oliveira
88ae21f2cc
Add mock dependency to py27-nobyte
2018-06-12 18:07:40 -03:00
Ronny Pfannschmidt
321f66f711
mark test_wrapped_getfuncargnames_patching as xfail
2018-06-12 22:25:05 +02:00
Ronny Pfannschmidt
52c4279918
Merge pull request #3572 from nicoddemus/remove-unused-scripts
...
Remove unused scripts and old docs
2018-06-12 21:57:51 +02:00
Bruno Oliveira
077c44cf69
Merge pull request #3578 from BartoszCki/master
...
Fix three spaces instead of four in docs
2018-06-12 15:17:40 -03:00
Bartosz Cierocki
f786534173
Fix three spaces instead of four in docs
2018-06-12 19:39:51 +02:00
Ronny Pfannschmidt
b0ec442d24
rework Node.add_marker parameter list and docstring
2018-06-12 17:55:58 +02:00
Bruno Oliveira
9a7c3a65f4
Improve CHANGELOG formatting
2018-06-12 11:07:42 -03:00
Ronny Pfannschmidt
37793d4cdb
fix addmarker - extract mark from markdecorator
2018-06-12 15:50:58 +02:00
Ronny Pfannschmidt
1b5322da1b
Merge pull request #3571 from nicoddemus/pre-commit-contributors-guide
...
Improve contributing instructions regarding black/linting
2018-06-12 06:37:18 +02:00
Bruno Oliveira
d6e7b1a21b
Remove obsolete doc/en/test directory
...
Apparently this was an old version of the docs, which has long been superseded
2018-06-11 23:33:09 -03:00
Bruno Oliveira
4983de60d3
Remove unused scripts from docs
2018-06-11 23:32:49 -03:00
Bruno Oliveira
e0a1da4eb9
Remove changelog for #3554
...
This entry was removed in #3562
2018-06-11 23:17:11 -03:00
Anthony Sottile
ef88251573
Merge pull request #3570 from sangongs/fix_stack_finalizer
...
Continue to call finalizers in the stack when a finalizer raises an exception
2018-06-11 19:07:59 -07:00
Bruno Oliveira
f300f7fa24
Improve contributing instructions regarding black/linting
2018-06-11 20:49:25 -03:00
Bruno Oliveira
41125968d9
Check the exception matches the message for completeness
2018-06-11 20:33:13 -03:00
Bruno Oliveira
4fd66e8a42
Run black on test file
2018-06-11 20:32:08 -03:00
Guoqiang Zhang
a888bf182e
Continue to call finalizers in the stack when a finalizer in a former scope raises an exception
2018-06-11 18:01:18 -04:00
Bruno Oliveira
04b65cfba0
Merge pull request #3565 from nicoddemus/xfail-test-request-garbage
...
Attempt to fix test_request_garbage on Windows
2018-06-11 15:23:47 -03:00
Ronny Pfannschmidt
61471df8da
Merge pull request #3562 from nicoddemus/revert-callinfo-result
...
Revert change of Callinfo.result default value
2018-06-11 19:03:01 +02:00
Ronny Pfannschmidt
1aba123ac5
fix doc build
2018-06-11 16:20:24 +02:00
Bruno Oliveira
efc9a0ecb5
Merge pull request #3567 from michael-k/doc-typo
...
Fix typo in documentation
2018-06-11 09:09:53 -03:00
Michael Käufl
4a78711067
Fix typo in documentation
2018-06-11 13:28:09 +02:00
Bruno Oliveira
5ea647a245
Attempt to fix flaky test_request_garbage on Windows
...
Fix #3564
2018-06-10 19:18:44 -03:00
Bruno Oliveira
11705040ac
Merge pull request #3563 from asottile/undetermined_location_none
...
Print <undetermined location> instead of None for warnings
2018-06-10 16:19:50 -03:00
Anthony Sottile
fe81de6150
git mv changelog/3554.bugfix{,.rst}
2018-06-10 10:53:15 -07:00
Anthony Sottile
49f621de76
Print <undetermined location> instead of None for warnings
2018-06-10 10:51:36 -07:00
Bruno Oliveira
10b0b81346
Revert change of Callinfo.result default value
...
As discussed in #3560 , this should not go to master because this breaks
the API.
Reverts commits:
1a7dcd73cf
198e993969
2018-06-10 11:47:58 -03:00
Alan Velasco
80f8a3ad7c
Merge pull request #3560 from alanbato/fix_callinfo_rrp
...
Add a default value to CallInfo.result
2018-06-09 21:20:56 -07:00
Bruno Oliveira
198e993969
Format CHANGELOG
2018-06-09 21:31:32 -03:00
Alan Velasco
1a7dcd73cf
Add a default value to CallInfo.result
2018-06-09 16:58:23 -07:00
Bruno Oliveira
7c8d072241
Merge pull request #3558 from nicoddemus/doc-strict
...
Add documentation blurb for --strict
2018-06-09 19:38:31 -03:00
Bruno Oliveira
c4f72e4d13
Apply code review changes
2018-06-09 12:40:39 -03:00
Bruno Oliveira
3667a52ba2
Remove Mark api from mark.rst
...
Feels out of place in there, plus the reference documentation
already contains the reference API to all mark-related classes
2018-06-09 12:02:28 -03:00
Bruno Oliveira
97d48ba60d
Add documentation blurb for --strict
...
Fix #3549
2018-06-09 12:02:21 -03:00
Bruno Oliveira
55bbd3e3e2
Merge pull request #3553 from asottile/changelog_3552
...
Add changelog entry for #3552
2018-06-09 10:31:54 -03:00
Anthony Sottile
4c01dd651e
Add changelog entry for #3552
2018-06-08 06:20:57 -07:00
Bruno Oliveira
472354c714
Merge pull request #3552 from asottile/remove_setup_py_test
...
Remove setup.py test now that it's broken
2018-06-08 08:28:18 -03:00
Anthony Sottile
c1d9ca81df
Remove setup.py test now that it's broken
2018-06-07 22:01:14 -07:00
Bruno Oliveira
f389a4e91f
Merge pull request #3545 from blueyed/int
...
Improve display of hint about --fulltrace with KeyboardInterrupt
2018-06-07 20:03:06 -03:00
Bruno Oliveira
942d363c03
Improve changelog formatting
2018-06-07 18:55:50 -03:00
Daniel Hahler
c30c137a95
Improve display of hint about --fulltrace with KeyboardInterrupt
...
- display the location first
- display hint about --fulltrace in parenthesis
2018-06-07 23:50:24 +02:00
Anthony Sottile
18157659ca
Merge pull request #3544 from asottile/correct_changelot
...
Correct issue number in changelog
2018-06-06 14:06:13 -07:00
Anthony Sottile
60b34ec7ec
Correct issue number in changelog
2018-06-06 13:27:59 -07:00
Bruno Oliveira
60273d7e99
Merge pull request #3541 from samueldg/docs/fix-plugin-list
...
Fix typo in plugin list example
2018-06-05 20:28:24 -03:00
Samuel Dion-Girardeau
d694290626
Fix typo in plugin list example
2018-06-05 18:27:59 -04:00
Bruno Oliveira
56b3a9eb8f
Merge pull request #3534 from nicoddemus/release-3.6.1
...
Release 3.6.1
2018-06-05 14:45:00 -03:00
Ronny Pfannschmidt
464117b472
fix imports in tests
2018-06-05 10:20:36 +02:00
Ronny Pfannschmidt
1459cbe01f
put config path finding and exceptions into own modules
2018-06-05 10:07:02 +02:00
Ronny Pfannschmidt
c9df77cbd6
move argument parser to own file
2018-06-05 09:55:28 +02:00
Ronny Pfannschmidt
026cd36237
make builtin plugins a list
2018-06-05 09:40:50 +02:00
Ronny Pfannschmidt
bc2247219f
turn config into package
...
this prepares the splitting
2018-06-05 09:08:53 +02:00
Bruno Oliveira
2a79f58ba3
Fix linting
2018-06-04 22:14:04 -03:00
Bruno Oliveira
66ec0a50b6
Preparing release version 3.6.1
2018-06-05 01:11:27 +00:00
Bruno Oliveira
c58b67c540
Configure towncrier to use src directory
2018-06-05 01:10:36 +00:00
Bruno Oliveira
cc793a8575
Merge pull request #3522 from NiklasMM/fix/3461_factory-fixture-doc
...
Add factory fixture example to documentation.
2018-06-04 22:09:50 -03:00
Ronny Pfannschmidt
7f5cb46835
Merge pull request #3531 from hroncok/370b5
...
Module docstrings in 3.7 are not part of Module node anymore
2018-06-05 01:16:14 +02:00
Ronny Pfannschmidt
a7f9e8382b
Merge pull request #3529 from asottile/unpy25
...
Remove some python2.5 compatibility code
2018-06-04 16:25:00 +02:00
Miro Hrončok
39ebdab1bc
DRY in TestAssertionRewrite
2018-06-04 14:03:13 +02:00
Miro Hrončok
9a6fa33c69
Module docstrings in 3.7 are not part of Module node anymore
...
Fixes https://github.com/pytest-dev/pytest/issues/3530
2018-06-04 13:58:35 +02:00
Anthony Sottile
2f6555dfd3
Add changelog entry
2018-06-03 13:12:49 -07:00
Anthony Sottile
ff19f273a9
Use six to import queue instead of py.builtin._tryimport
2018-06-03 13:12:49 -07:00
Anthony Sottile
04f08b67a4
__code__ and __self__ are attributes in python2.6+
2018-06-03 13:12:46 -07:00
Anthony Sottile
3d0717813a
bytes() is a builtin in python2.6+
2018-06-03 11:54:36 -07:00
Ronny Pfannschmidt
d609b635f4
Merge pull request #3528 from asottile/blacken_docs
...
blacken docs
2018-06-03 18:40:11 +02:00
Anthony Sottile
0f2d7dc73c
blacken docs
2018-06-03 07:58:46 -07:00
Anthony Sottile
5c878001ea
Manual docs changes so syntax is parseable
2018-06-02 20:19:17 -07:00
Bruno Oliveira
4dc5f7897d
Fix typo in marks.rst
2018-05-31 12:43:48 -03:00
Niklas Meinzer
08de3dad33
Add factory fixture example to documentation.
...
Close https://github.com/pytest-dev/pytest/issues/3461
2018-05-31 11:21:10 +02:00
Bruno Oliveira
5748c5ce8f
Fix default cache directory to .pytest_cache
2018-05-30 08:24:10 -03:00
Bruno Oliveira
b6a302d0a8
Merge pull request #3516 from RonnyPfannschmidt/travis-optimize
...
enable pip/pre-commit caching on travis and appveyor
2018-05-27 12:51:51 -03:00
Ronny Pfannschmidt
130f76f66e
enable pip/pre-commit caching on travis and appveyor
2018-05-27 13:05:10 +02:00
Bruno Oliveira
075faa5e2b
Merge pull request #3513 from RonnyPfannschmidt/src-layout
...
switch to src layout
2018-05-26 10:36:23 -03:00
Ronny Pfannschmidt
eaa882f3d5
switch to src layout
2018-05-26 09:10:38 +02:00
Ronny Pfannschmidt
ee6c54904b
Merge pull request #3512 from asottile/rst_via_pre_commit
...
Call rst-lint directly with pre-commit
2018-05-26 08:09:11 +02:00
Anthony Sottile
2a8463c745
Call rst-lint directly with pre-commit
2018-05-25 18:16:54 -07:00
Bruno Oliveira
1d451c786d
Merge pull request #3509 from nicoddemus/marshal-3503
...
Write rewritten code using file.write(marshal.dumps())
2018-05-25 21:24:45 -03:00
Bruno Oliveira
a36bab448f
Merge pull request #3485 from RonnyPfannschmidt/pre-commit-hook
...
adapt Pre commit hook and black
2018-05-25 19:03:45 -03:00
Bruno Oliveira
437a6fb224
Add "black code-style" badge
2018-05-25 18:23:59 -03:00
Bruno Oliveira
1b16d649f9
Fix formatting of merged files
2018-05-25 18:21:48 -03:00
Bruno Oliveira
6f8547cc1a
Merge branch 'master' into pre-commit-hook
2018-05-25 18:14:43 -03:00
Bruno Oliveira
b5a94d8e6c
Write rewritten code using file.write(marshal.dumps())
...
This works around the fact that some libraries might monkey patch
the file object, so the previous approach of marshal.dump(co, file)
breaks because file is not a built-in file object anymore.
Fix #3503
2018-05-25 17:24:23 -03:00
Bruno Oliveira
65bc43dc56
Merge pull request #3505 from Avira/tox-lowercase
...
Fix tox spelling (all lower case).
2018-05-25 17:07:12 -03:00
Oliver Bestwalter
c55635d42a
Fix tox spelling (all lower case).
2018-05-25 09:54:03 +02:00
Bruno Oliveira
93fdad28aa
Merge pull request #3499 from jeffreyrack/3491-junit-logging
...
3491 - Fixed a bug where stdout and stderr were logged twice by junitxml for xfail tests.
2018-05-24 20:50:16 -03:00
Bruno Oliveira
48215fdcb9
Merge pull request #3500 from RonnyPfannschmidt/fix-3498-unittest-marks
...
fix #3498 - correctly consider marks on unittest classes
2018-05-24 13:51:17 -03:00
Ronny Pfannschmidt
5a6a580765
clean env for the linting stage
2018-05-24 14:18:34 +02:00
Ronny Pfannschmidt
df17bb2bd3
switch linting tox env to use pre-commit, clean out travis linting env as unneeded
2018-05-24 14:17:09 +02:00
Ronny Pfannschmidt
6eb7af5a4e
experimentally add pre-commit for linting in travis
2018-05-24 13:51:15 +02:00
Bruno Oliveira
bc25d51b2f
Re-word changelog
2018-05-24 07:27:40 -03:00
Ronny Pfannschmidt
9ed1289b01
run black on test_source_multiline_block.py
2018-05-24 12:12:12 +02:00
Ronny Pfannschmidt
5a0c9aca63
correctly instantiate fixtureinfo for unittest tests, fixes #3498
2018-05-24 10:29:42 +02:00
Ronny Pfannschmidt
da2c2e8492
more debugging for #3498
2018-05-24 09:58:36 +02:00
Ronny Pfannschmidt
74cfdc5feb
add failing test for #3498
2018-05-24 07:30:38 +02:00
Jeffrey Rackauckas
b4e0265622
Removed whitespace from empty line.
2018-05-23 20:15:28 -07:00
Jeffrey Rackauckas
210ad22dbe
Updating changelog text
2018-05-23 19:43:06 -07:00
Jeffrey Rackauckas
6c519b1280
Fixed a bug where stdout and stderr were logged twice by junitxml.
2018-05-23 19:34:45 -07:00
Ronny Pfannschmidt
57a55cd0a3
restore formatting of test_source_multiline_block
2018-05-23 20:26:13 +02:00
Ronny Pfannschmidt
d4bf2ff8f5
fix test_source
2018-05-23 18:22:18 +02:00
Ronny Pfannschmidt
3e08c4ee64
sort out flake8 issues and unicode name usage
2018-05-23 18:12:04 +02:00
Ronny Pfannschmidt
703e4b11ba
run black
2018-05-23 16:48:46 +02:00
Ronny Pfannschmidt
3e1590bcfc
sort out pyupgrade fallout
2018-05-23 16:45:58 +02:00
Ronny Pfannschmidt
86fc31db8d
apply most other hooks and opt out of black reformating
2018-05-23 16:45:58 +02:00
Ronny Pfannschmidt
b60376dc28
add pre-commit to CONTRIBUTING.txt
2018-05-23 16:45:23 +02:00
Ronny Pfannschmidt
3b9e063fe8
fix line endings
2018-05-23 16:45:23 +02:00
Ronny Pfannschmidt
9aacb4635e
run pyupgrade
2018-05-23 16:45:09 +02:00
Ronny Pfannschmidt
d41119ed04
add the config
2018-05-23 16:45:09 +02:00
Bruno Oliveira
afde9f07f7
Update number of tests in email template
2018-05-23 08:06:27 -03:00
Bruno Oliveira
b4cd010d71
Merge pull request #3495 from nicoddemus/release-3.6.0
...
Release 3.6.0
2018-05-23 07:51:30 -03:00
Bruno Oliveira
45e7703133
Move mark revamp note to the top of the CHANGELOG
2018-05-22 21:12:51 -03:00
Bruno Oliveira
d70e910b65
Preparing release version 3.6.0
2018-05-23 00:07:48 +00:00
Bruno Oliveira
c55db1faac
Merge remote-tracking branch 'upstream/master' into release-3.6.0
2018-05-23 00:03:58 +00:00
Bruno Oliveira
16583a6d43
Add missing libs to tasks/requirements.txt
2018-05-23 00:03:47 +00:00
Bruno Oliveira
7985eff5b4
Merge pull request #3497 from hroncok/approx_compat_import
...
Import Mapping and Sequence from compat in python_api::approx
2018-05-22 20:57:29 -03:00
Miro Hrončok
5072226f69
Import Mapping and Sequence from compat in python_api::approx
...
Related to https://github.com/pytest-dev/pytest/issues/3339
Fixes a DeprecationWarning on Python 3.7
Adds Mapping to compat
2018-05-22 22:25:15 +02:00
Ronny Pfannschmidt
6c8d46d8ea
Merge pull request #3487 from tgoodlet/detect_pytest_hook_prefix
...
Detect `pytest_` prefixed hooks
2018-05-22 21:36:58 +02:00
Bruno Oliveira
7d0c9837ce
Merge pull request #3459 from RonnyPfannschmidt/mark-iter-name-filter
...
introduce name filtering for marker iteration again
2018-05-21 13:24:39 -03:00
Bruno Oliveira
8e17e32253
Merge pull request #3492 from timhughes/patch-1
...
fix typo in docs
2018-05-20 15:51:03 -03:00
Tim Hughes
f0b855369c
fix typo
2018-05-20 19:14:06 +01:00
Ronny Pfannschmidt
4aa7ebaf52
Merge pull request #3490 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-05-19 11:36:11 +02:00
Tyler Goodlet
486b786cb2
Add trivial changelog entry
2018-05-18 12:02:50 -04:00
Bruno Oliveira
674879976f
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-05-18 12:30:08 -03:00
Tyler Goodlet
d4065a9166
Detect pytest_ prefixed hooks
...
`pluggy` is deprecating the `implprefix` argument in the next major
release so implement this detection in our derived plugin manager.
Relates to pytest-dev/pluggy#145
2018-05-17 20:38:54 -04:00
Bruno Oliveira
e7f75f69f2
Small grammar fix in CHANGELOG
2018-05-17 21:20:43 -03:00
Bruno Oliveira
5be85a1f55
Merge changelog marks refactoring changelog entries as discussed in review
2018-05-17 21:18:12 -03:00
Ammar Najjar
9ddd573774
Issue #3295 : add changelog doc entry for adding a missing argument in
...
the examples
2018-05-17 23:11:37 +02:00
Ammar Najjar
f99da9058f
Issue #3295 : Correct the usage of --last-failed-no-failures documentation
...
- add the missing --last-failed argument in the presented examples, for they are missleading and lead to think that the missing argument is not needed.
2018-05-17 23:07:55 +02:00
Bruno Oliveira
bb626fe8a7
Fix typo in mark.rst
2018-05-17 16:06:00 -03:00
Ronny Pfannschmidt
45faaeca7a
Merge pull request #3480 from nicoddemus/deprecated-deadlne-hypothesis
...
Attempt to fix CI problems related to Hypothesis
2018-05-17 20:18:27 +02:00
Bruno Oliveira
11fb384efb
Fix link to skipif tutorial in ref docs
2018-05-17 10:15:47 -03:00
Bruno Oliveira
5edad01d4e
Merge pull request #3476 from avirlrma/master
...
change doc copyright year to range and auto update year
2018-05-16 17:53:23 -03:00
Bruno Oliveira
f5361a302c
Use a more recent hypothesis version on CI
2018-05-16 07:35:02 -03:00
Bruno Oliveira
94e62dfc50
Increase hypothesis deadline
...
The value is pretty close to the new default that will come out in
future hypothesis versions, which is generating a deprecation error
on CI.
Using a loose deadline because CI boxes are not reliable in how much
CPU power they have available
2018-05-16 07:34:53 -03:00
Bruno Oliveira
afe4800daf
Fix deprecation notice in Node.get_marker
2018-05-15 21:47:40 -03:00
Bruno Oliveira
2cd159e8c5
Add section on how to update marks and add ref to the deprecation notice
2018-05-15 21:35:27 -03:00
Bruno Oliveira
718ba83600
Small adjustment to the CHANGELOG
2018-05-15 21:02:05 -03:00
Bruno Oliveira
1b2f4f4483
Small rewording to the CHANGELOG
2018-05-15 21:01:37 -03:00
Bruno Oliveira
f68bab06b4
Reword the changelog
2018-05-15 18:24:14 -03:00
Bruno Oliveira
a4425cb4af
Merge pull request #3469 from scop/dropthedot
...
#dropthedot
2018-05-15 08:00:28 -03:00
Bruno Oliveira
01d2d81d1f
Merge pull request #3468 from scop/spelling
...
Spelling and grammar fixes
2018-05-15 07:59:56 -03:00
aviral1701
f14e097635
added changelog and added my name to the authors
2018-05-15 12:54:48 +05:30
aviral1701
a59f677d93
change doc copyright year to range and auto update year
2018-05-15 12:48:04 +05:30
Bruno Oliveira
36614b0a3d
Fix formatting in CHANGELOG entry
2018-05-14 09:56:36 -03:00
Ville Skyttä
b4370c08b9
#dropthedot
2018-05-13 12:09:47 +02:00
Ville Skyttä
aa51fcb2b6
Spelling and grammar fixes
2018-05-13 12:06:09 +02:00
Ronny Pfannschmidt
4914135fdf
introduce name filtering for marker iteration again
2018-05-11 21:48:15 +02:00
Ronny Pfannschmidt
84b37e1b57
Merge pull request #3452 from nicoddemus/fix-flaky-xdist-test
...
Attempt to fix flaky test on Python 2
2018-05-05 20:18:06 +02:00
Bruno Oliveira
fa76a5c8fe
Attempt to fix flaky test on Python 2
...
This test sometimes fails on AppVeyor with:
```
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.0 = <listiterator object at 0x0549DC50>
leaked_types = sum(1 for _ in gc.garbage
> if 'PseudoFixtureDef' in str(_))
E UnicodeEncodeError: 'ascii' codec can't encode character u'\u263a' in position 23: ordinal not in range(128)
test_request_garbage.py:19: UnicodeEncodeError
====================== 1 passed, 1 error in 1.39 seconds ======================
```
Use our internal "safe_repr" function to handle Encode errors: who knows
what objects are in garbage after all.
2018-05-04 17:56:51 -03:00
Ronny Pfannschmidt
27651f4032
Merge pull request #3444 from nicoddemus/escape-whitespace-diffs
...
Escape whitespace only strings when diffing them on failed assertions
2018-05-04 18:14:35 +02:00
Bruno Oliveira
413b1aa4e9
Rename internal function as suggested during review
2018-05-04 11:08:35 -03:00
Bruno Oliveira
dca77b2273
Escape whitespace only strings when diffing them on failed assertions
...
Fix #3443
2018-05-03 20:38:00 -03:00
Bruno Oliveira
35f53a7353
Merge pull request #3442 from RonnyPfannschmidt/fix-3441-markexpr-markstorage
...
Fix #3441 let mark expressions be populated from the modern marker storage
2018-05-03 19:27:07 -03:00
Ronny Pfannschmidt
e6a86e0f4c
add tests for #3441
2018-05-03 17:33:59 +02:00
Bruno Oliveira
b03b387861
Merge pull request #3436 from brianmaissy/feature/enter_pdb_on_keyboard_interrupt
...
--pdb treats KeyboardInterrupt as exception
2018-05-03 12:20:43 -03:00
Ronny Pfannschmidt
a5cf55dd4a
fix test_mark_option_custom - it used the legacy keyword storage for addign markers
2018-05-03 16:33:16 +02:00
Ronny Pfannschmidt
63ef46dd91
fix #3441 - use iter-marks to populate markexpr namespace
2018-05-03 16:28:47 +02:00
Ronny Pfannschmidt
7834b45002
Merge pull request #3437 from nicoddemus/mark-changelog
...
Improve changelog note about markers
2018-05-02 06:45:39 +02:00
Bruno Oliveira
ccaa979f27
Improve changelog note about markers
...
Also changed the title in the docs because the previous title had
the same level as the title, making it appear in a separate entry
in `contents.rst`
2018-05-01 19:27:53 -03:00
Bruno Oliveira
1a880be85b
Remove unused import to fix linting
2018-05-01 19:08:29 -03:00
Brian Maissy
c258fe1459
--pdb treats KeyboardInterrupt as exception
2018-05-02 00:58:35 +03:00
turturica
7d0dba18de
Removed _CompatProperty("Package")
2018-04-27 10:23:15 -07:00
Ronny Pfannschmidt
08aed1a6bf
Merge pull request #3433 from nicoddemus/conda-forge-badge
...
Use conda-forge badge instead of anaconda's
2018-04-27 16:11:58 +02:00
Bruno Oliveira
b49e9191ac
Use conda-forge badge instead of anaconda's
...
Just noticed that conda-forge has its own badge so let's use that
2018-04-27 10:23:28 -03:00
turturica
6fc7f07a80
Workaround for py36-xdist failure.
2018-04-26 23:05:03 -07:00
Bruno Oliveira
febccae037
Merge pull request #3431 from jdufresne/pypi
...
Update all pypi.python.org URLs to pypi.org
2018-04-26 13:15:46 -03:00
Jon Dufresne
d2bf0bf9bb
Update all pypi.python.org URLs to pypi.org
...
For details on the new PyPI, see the blog post:
https://pythoninsider.blogspot.ca/2018/04/new-pypi-launched-legacy-pypi-shutting.html
2018-04-26 06:49:33 -07:00
turturica
05b5b64379
Merge remote-tracking branch 'upstream/features' into features
2018-04-25 21:20:39 -07:00
turturica
229c8e551d
Fix parametrized fixtures reordering.
2018-04-25 18:44:54 -07:00
Ronny Pfannschmidt
5ba0663827
Merge pull request #3428 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-04-25 14:04:41 +02:00
Bruno Oliveira
63368e07ea
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-04-24 21:26:45 -03:00
Bruno Oliveira
0b2b73c36a
Remove CHANGELOG entries left by old bug in towncrier
2018-04-24 21:25:13 -03:00
Bruno Oliveira
69b1c2d4f6
Merge pull request #3424 from nicoddemus/release-3.5.1
...
Preparing release version 3.5.1
2018-04-24 19:30:54 -03:00
turturica
d483b401ee
Merge remote-tracking branch 'upstream/features' into features
2018-04-24 13:45:10 -07:00
turturica
acacf75f49
Added another package-scoped fixture test.
...
Changed existing complex tests to use package fixtures.
2018-04-24 13:32:58 -07:00
Bruno Oliveira
4a92011e6e
Fix note about importing from collections.abc
2018-04-24 07:06:52 -03:00
Ronny Pfannschmidt
6e62fc98ff
Merge pull request #2849 from ApaDoctor/disable-repeated-fixture
...
provide error fixture applied to the same func
2018-04-24 06:36:54 +02:00
Bruno Oliveira
132fb61eba
Merge remote-tracking branch 'upstream/features' into ApaDoctor/disable-repeated-fixture
2018-04-23 22:24:53 -03:00
Bruno Oliveira
03850cf962
Add test for applying fixture twice
...
Fix #2334
2018-04-23 22:17:46 -03:00
Bruno Oliveira
f05230c679
Move #3221 to trivial section in the CHANGELOG
2018-04-23 19:27:07 -03:00
Bruno Oliveira
d61a7670a1
Merge pull request #3422 from rachel1792/master
...
updated doc to delete deprecated hook: Issue #3417
2018-04-23 19:24:52 -03:00
Bruno Oliveira
8d56641590
Preparing release version 3.5.1
2018-04-23 22:24:21 +00:00
Bruno Oliveira
2a480c59ae
Merge pull request #3367 from brianmaissy/feature/indicative_error_for_parametrize_with_default_argument
...
added indicative error when parametrizing an argument with a default …
2018-04-23 11:04:36 -03:00
Rachel Kogan
6ea4c12da7
updated doc to delete deprecated hook
2018-04-22 21:56:18 -04:00
turturica
f8350c6304
Fix an issue that popped up only on Windows.
2018-04-21 19:51:33 -07:00
turturica
fedc78522b
Build a stack of all previous packages instead of just the one closest to the initial argument(s).
...
Address #3358 by caching nodes in a session dict.
2018-04-21 18:39:42 -07:00
turturica
b0474398ec
Fix a formatting error.
2018-04-20 18:18:44 -07:00
turturica
dc90c9108f
Collapse all parent nested package fixtures when pointing to a sub-node.
...
Example:
Given this hierarchy: p1.s1.s2.s3
I want to run pytest p1/s1/s2/s3/foo.py
If there are any package fixtures defined at p1..s2 levels, they should also be executed.
2018-04-20 17:15:09 -07:00
turturica
69031d0033
Forgot one file from previous commit.
2018-04-20 15:54:21 -07:00
turturica
e44d4e6508
Merge remote-tracking branch 'upstream/features' into features
2018-04-20 15:21:24 -07:00
turturica
c416b1d935
Don't stop at the first package when looking up package-scoped fixtures.
...
Example:
package1.subpackage1
package1.subpackage2
package1's setup/teardown were executed again when exiting subpackage1 and entering subpackage2.
2018-04-20 15:04:58 -07:00
Bruno Oliveira
f0084608cc
Merge pull request #3407 from rachel1792/master
...
Fix typo in caplog fixture documentation: Issue #3406
2018-04-20 17:41:04 -03:00
Bruno Oliveira
cefeba33ef
Update changelog formatting
2018-04-20 17:40:19 -03:00
Bruno Oliveira
3318e53d01
Merge pull request #3382 from feuillemorte/3290-improve-monkeypatch
...
#3290 improve monkeypatch
2018-04-19 17:05:52 -03:00
Ronny Pfannschmidt
1cc79ffc10
Merge pull request #3408 from MarSoft/patch-2
...
Fix typo in the comment
2018-04-19 09:21:11 +02:00
Семён Марьясин
d8015764e6
Fix typo in the comment
2018-04-18 12:47:52 +03:00
turturica
7d923c389e
Merge remote-tracking branch 'upstream/features' into features
2018-04-18 00:11:03 -07:00
Rachel Kogan
48c99f62e3
add changelog
2018-04-17 16:24:32 -04:00
Rachel Kogan
8ff8a82c51
Merge branch 'master' of github.com:pytest-dev/pytest
2018-04-17 16:21:04 -04:00
Rachel Kogan
bb8984f5ed
fix error in caplog docs.
2018-04-17 16:17:29 -04:00
turturica
c02e8d8b0d
Fix test collection when tests are passed as IDs at the command line. Note this is still broken due to #3358 .
2018-04-16 11:44:05 -07:00
Bruno Oliveira
159cd39777
Merge pull request #3401 from kohr-h/underscore_fixtures
...
Mention omission of fixtures with leading '_', closes #3398
2018-04-16 13:25:10 -03:00
Brian Maissy
857098fe0f
added indicative error when parametrizing an argument with a default value
2018-04-15 20:52:57 +03:00
feuillemorte
283ac8bbf4
#3290 Fix doc
2018-04-14 21:06:58 +03:00
Holger Kohr
6626d2aef9
Mention omission of fixtures with leading '_', closes #3398
2018-04-14 11:04:00 +02:00
feuillemorte
ba7cad3962
#3290 Fix comments
2018-04-13 16:00:07 +03:00
Ronny Pfannschmidt
36f6687b70
Merge pull request #3397 from darrenburns/patch-2
...
Fix some mistakes in contributing.rst
2018-04-13 13:20:31 +02:00
Darren Burns
86def48b25
Fix some mistakes in contributing.rst
2018-04-13 11:33:58 +01:00
Bruno Oliveira
0024b71f1c
Merge pull request #3395 from darrenburns/patch-1
...
Update CONTRIBUTING.rst
2018-04-12 18:42:33 -03:00
Ronny Pfannschmidt
17a43dc4a5
firther enhance the links in contributing.rst
2018-04-12 22:06:06 +02:00
Darren Burns
958f146125
Update CONTRIBUTING.rst
...
Fixes a broken link in CONTRIBUTING.rst
2018-04-12 20:54:32 +01:00
Ronny Pfannschmidt
13a6f63cd9
Merge pull request #3390 from nicoddemus/atomic-pyc-writes
...
Attempt to solve race-condition which corrupts .pyc files on Windows
2018-04-12 13:57:39 +02:00
Bruno Oliveira
aa95a425d7
Attempt to solve race-condition which corrupts .pyc files on Windows
...
This uses of the `atomicwrites` library.
This is very hard to create a reliable test for.
Fix #3008
2018-04-12 08:19:28 -03:00
Bruno Oliveira
015626ce69
Merge pull request #3384 from nicoddemus/leak-frame
...
Reset reference to failed test frame before each test executes
2018-04-12 07:53:34 -03:00
Ronny Pfannschmidt
f9a908abb8
Merge pull request #3388 from nicoddemus/simplify-tox
...
Simplify tox to avoid repetition
2018-04-12 11:32:48 +02:00
Ronny Pfannschmidt
160c309371
Merge pull request #3391 from nicoddemus/project-urls
...
Add additional project urls to setup.py
2018-04-12 08:54:12 +02:00
Ronny Pfannschmidt
f79b0324fe
Merge pull request #3387 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-04-12 08:39:22 +02:00
Bruno Oliveira
37ee4fbc48
Add additional project urls to setup.py
...
According to:
https://packaging.python.org/tutorials/distributing-packages/#project-urls
Those URLs are displayed in the project page in Warehouse (new PyPI).
2018-04-11 23:46:17 -03:00
turturica
35df2cdbee
Fix linting error.
2018-04-11 15:45:43 -07:00
turturica
2b1410895e
Add package scoped fixtures #2283
2018-04-11 15:39:42 -07:00
Bruno Oliveira
888fcbc4b4
Simplify tox to avoid repetition
...
Also took the opportunity to:
* Use more cores for py*-xdist environments
* Update freeze test to use py36
2018-04-11 18:30:15 -03:00
Bruno Oliveira
10a7160549
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-04-11 18:07:47 -03:00
feuillemorte
a4daac7eb0
#3290 Fix doc
2018-04-11 12:46:02 +03:00
feuillemorte
97be076f29
#3290 Added changelog file
2018-04-11 12:45:46 +03:00
feuillemorte
3d60f955f0
#3290 Added test
2018-04-11 12:45:37 +03:00
feuillemorte
659c044372
#3290 Improved monkeypatch to support some form of with statement
2018-04-11 12:45:26 +03:00
Bruno Oliveira
6e8e3c967a
Add changelog entry for #2798
2018-04-10 21:09:57 -03:00
Bruno Oliveira
78c900448e
Add acceptance test for #2798
2018-04-10 21:04:30 -03:00
Ronny Pfannschmidt
372bcdba0c
Merge pull request #3380 from nicoddemus/marks-fixes
...
Add the list of issues fixed by the new marker implementation to the docs
2018-04-10 14:33:58 +02:00
Bruno Oliveira
d1ba19acad
Add the list of issues fixed by the new marker implementation to the docs
...
This will help make users more understanding if their code breaks under the
new implementation.
2018-04-10 08:00:32 -03:00
Ronny Pfannschmidt
2241c98b18
Merge pull request #3331 from tonybaloney/breakpoint_support
...
Support for the new builtin breakpoint function in Python 3.7
2018-04-10 07:15:29 +02:00
Bruno Oliveira
715337011b
Merge pull request #3317 from RonnyPfannschmidt/marker-pristine-node-storage
...
introduce a distinct searchable non-broken storage for markers
2018-04-09 19:40:12 -03:00
Bruno Oliveira
e012dbe346
Merge pull request #3373 from backbord/master
...
Fix issue #3372
2018-04-06 22:10:57 -03:00
Tim Strazny
5bd8561016
linting: unfortunate dedent be gone.
2018-04-06 17:36:35 +02:00
Tim Strazny
846d91fb95
Follow Ronny's advice and use `type in base_type`.
2018-04-06 16:23:04 +02:00
Tim Strazny
0cd74dc324
Ensure object is class before calling issubclass.
2018-04-06 14:40:30 +02:00
Tim Strazny
ec2d8223cf
Fix issue #3372
2018-04-06 14:16:12 +02:00
Ronny Pfannschmidt
4df8f2b153
fix doc build, use noindex on the mark reference
2018-04-06 08:13:28 +02:00
Ronny Pfannschmidt
5d4fe87b72
Merge pull request #3371 from nicoddemus/remove-labels-descriptions
...
Remove label descriptions from development guide
2018-04-06 07:39:15 +02:00
Bruno Oliveira
f17dfa4292
Remove label descriptions from development guide
...
The descriptions have been moved directly to GitHub's new label description
slot.
2018-04-05 20:55:08 -03:00
Bruno Oliveira
ab91771efc
Merge pull request #3370 from dchudz/patch-1
...
no-capture in sample code demo'ing plugin
2018-04-05 20:25:04 -03:00
Bruno Oliveira
ef34de960c
Merge pull request #3360 from RonnyPfannschmidt/xml_property_yay
...
record_property is no longer experimental
2018-04-05 20:03:22 -03:00
David Chudzicki
db24723b61
no-capture in sample code demo'ing plugin
2018-04-05 20:34:26 +02:00
Bruno Oliveira
e534cc81a3
Fix typos in docs
2018-04-05 14:45:30 -03:00
Ronny Pfannschmidt
3582e1f6be
include more detail on the marker api issues
2018-04-05 18:46:33 +02:00
Ronny Pfannschmidt
a8ad89cdb3
fix documentation references
2018-04-05 18:39:57 +02:00
Bruno Oliveira
48bcc3419f
Reword the docs on markers a bit
2018-04-05 12:39:21 -03:00
Ronny Pfannschmidt
1fcadeb2ce
extend marker docs with reasons on marker iteration
2018-04-05 15:30:31 +02:00
Ronny Pfannschmidt
2018cf12b1
fix the record_property test
2018-04-05 14:05:26 +02:00
Bruno Oliveira
ba407b5eb6
Clear sys.last_* attributes before running an item
...
Otherwise we will keep the last failed exception around forever
Related to #2798
2018-04-04 20:36:07 -03:00
Ronny Pfannschmidt
ad0b4330e7
Merge pull request #3364 from sscherfke/more-itertools
...
Use correct spelling for "more-itertools"
2018-04-03 21:30:42 +02:00
Stefan Scherfke
9aa2a83785
Use correct spelling for "more-itertools"
2018-04-03 16:48:32 +02:00
Bruno Oliveira
0762666bd1
Remove unused pytestPDB import
2018-04-03 08:58:40 -03:00
Ronny Pfannschmidt
7c0c91a7a2
fix record_property test
2018-04-03 08:00:57 +02:00
Ronny Pfannschmidt
9326759a63
Merge pull request #3357 from nicoddemus/session-hooks-ref
...
Add reference docs for pytest_sessionstart/finish and update their docstrings
2018-04-03 07:08:47 +02:00
Anthony Shaw
4d847593b3
remove a test that would fail because pytest is being used to test itself
2018-04-03 10:40:56 +10:00
Bruno Oliveira
9a62ebf490
Merge pull request #3355 from irmen/py37deprfixes
...
change collections.abc import to fix deprecation warnings on python 3.7
2018-04-02 20:31:26 -03:00
Ronny Pfannschmidt
211f3c47b5
record_property is no longer experimental
2018-04-01 15:39:43 +02:00
Ronny Pfannschmidt
a2974dd067
fix doc building
2018-03-30 16:48:27 +02:00
Floris Bruynooghe
77128ee2dc
Merge pull request #3356 from nicoddemus/remove-stale-changelog-entries
...
Remove stale CHANGELOG entries
2018-03-30 14:19:38 +02:00
Ronny Pfannschmidt
7454a381e2
update configuration examples to new mark api
2018-03-30 08:36:58 +02:00
Ronny Pfannschmidt
e4a52c1795
prevent doubleing of function level marks
2018-03-30 08:19:45 +02:00
Ronny Pfannschmidt
802da781c6
fix method reference to iter_markers in warning
2018-03-30 07:50:12 +02:00
Bruno Oliveira
3fc2c94b5e
Switch imports based on python versions, my bad
2018-03-29 23:15:03 -03:00
Bruno Oliveira
daf1de0fed
Add reference docs for pytest_sessionstart/finish and update their docstrings
2018-03-29 19:48:48 -03:00
Bruno Oliveira
e5eba8419a
Remove stale CHANGELOG entries
...
Those were not removed in the last release because of a bug in
towncrier; I was about to fallback to don't use the .rst extension
for entries but just noticed that this was fixed in towncrier 17.8.0
so it should no longer be a problem.
2018-03-29 19:21:59 -03:00
Bruno Oliveira
6a81aae4f2
Move compatibility imports to compat.py and fix linting
2018-03-29 19:05:15 -03:00
Bruno Oliveira
8ca9321940
Move compatibility imports to compat.py and fix linting
2018-03-29 19:02:35 -03:00
Irmen de Jong
faded25ee8
chage collections.abc import to fix deprecation warnings on python 3.7
2018-03-29 20:02:00 +02:00
Ronny Pfannschmidt
dbb1b5a227
remove NodeMarkers, turn own_markers into a list and use iter_markers api exclusively
2018-03-29 18:24:10 +02:00
Ronny Pfannschmidt
8805036fd8
add node iteration apis
...
TODO: add tests
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
ee51fa5881
add api to iterate over all marerks of a node
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
2cb7e725ce
document the hack used to avoid duplicate markers due Instance collectors
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
02315c0489
remove unnecessary of in the code figuring the fixture names
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
a92a51b01b
clarify find_markers return value
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
159ea9b7c0
turn Markinfo into atts clsas, and return correct instances of it from node.get_marker
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
775fb96ac3
first changelog entry
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
ced1316bc8
add docstrings for nodemarkers
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
5e56e9b4f6
refactor node markers, remove need to be aware of nodes
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
2d06ae0f65
base metafunc fixtureinfo on the functiondefinition to caputure its marks
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
99015bfc86
fix most of metafunc tests by mocking
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
180ae09202
deprecate markinfo and fix up most marker scoping access while completely breaking metafunc testing
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
e8feee0612
fix up the mark evaluator validity check
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
f1a1695aaa
enable deep merging test - new structure fixed it
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
2707221559
port mark evaluation to the new storage and fix a bug in evaluation
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
360d608da4
introduce a own storage for markers
2018-03-29 17:52:01 +02:00
Ronny Pfannschmidt
f1c9efc358
Merge pull request #3353 from nicoddemus/fixture-param-marks-docs
...
Add docs about using pytest.param in parametrized fixtures
2018-03-29 10:57:28 +02:00
Bruno Oliveira
804392e5f2
Fix tests that check that breakpoint function is configured/restored
...
* Execute pytest in a subprocess in cases of tests which change global
state
* Parametrize with --pdb and without the flag
2018-03-28 20:19:28 -03:00
Bruno Oliveira
0a3cd881f6
Add docs about using pytest.param in parametrized fixtures
2018-03-28 19:35:10 -03:00
Anthony Shaw
09e5a226dc
add broken test
2018-03-29 09:03:20 +11:00
Ronny Pfannschmidt
2efaf39ed8
Merge pull request #3349 from jeffreyrack/3348-unknown-argument
...
3348: raise error on unknown arguments to raises
2018-03-28 21:45:59 +02:00
Bruno Oliveira
7656581302
Update changelog formatting
2018-03-28 07:31:26 -03:00
Bruno Oliveira
bfe773bfc8
Use shorter 'if kwargs' check as requested during review
2018-03-28 07:30:14 -03:00
Jeffrey Rackauckas
a5d9fbe2b0
Change pytest.raises to use match instead of matches
2018-03-27 20:24:15 -07:00
Jeffrey Rackauckas
34afded06d
Update pytest.raises to raise a TypeError when an invalid keyword argument is passed.
2018-03-27 19:57:15 -07:00
Anthony Shaw
3998b70ff6
add test for custom environment variable
2018-03-28 09:02:37 +11:00
Bruno Oliveira
060f047a7e
Use full link in CHANGELOG
...
Our rst-linter unfortunately doesn't accept `ref` directives in the CHANGELOG files
2018-03-27 18:35:47 -03:00
Bruno Oliveira
2962c7367c
Merge pull request #3307 from KKoukiou/rhv-qe-fix
...
logging.py: Don't change log level of the root logger to bigger numeric value
2018-03-27 18:03:22 -03:00
Bruno Oliveira
0a4200bbb3
Improve docs formatting
2018-03-27 07:40:52 -03:00
Anthony Shaw
b45006e9a3
fix syntax
2018-03-27 21:26:55 +11:00
Anthony Shaw
671ab5a36c
update documentation for new feature
2018-03-27 21:02:43 +11:00
Anthony Shaw
f1f4c8c104
updates for code review recommendations
2018-03-27 17:38:17 +11:00
Bruno Oliveira
6cfed00a61
Tweak changelog entry
2018-03-26 20:48:05 -03:00
Bruno Oliveira
ff3d13ed0e
Update typo in fixture.rst
2018-03-26 11:20:33 -03:00
Katerina Koukiou
d895f5d6fc
logging.py: Don't change log level of the root logger to bigger numeric value
2018-03-26 10:11:49 +02:00
Anthony Shaw
e97bd87ee2
fix assertion when hypothesis is installed (which is should be for developing in pytest)
2018-03-23 16:24:15 +11:00
Anthony Shaw
242fb7852b
linting and removed double test
2018-03-23 15:39:34 +11:00
Anthony Shaw
1ec99132e6
add myself to authors
2018-03-23 15:31:57 +11:00
Anthony Shaw
dcbba381d4
add changelog entry
2018-03-23 15:31:16 +11:00
Anthony Shaw
db581eabcb
add tests to validate that --pdbcls custom debugger classes will be called when breakpoint() is used
2018-03-23 15:30:05 +11:00
Anthony Shaw
0e83e4f292
conditional for resetting of sys.breakpointhook for cleanup where breakpoint() not supported
2018-03-23 14:26:16 +11:00
Anthony Shaw
21ada0fa23
add check for support of breakpoint() and use Custom Pdb class when system default is set
2018-03-23 14:20:10 +11:00
Anthony Shaw
a1ff758d0d
"Added acceptance tests for configuration of sys.breakpointhook and resetting back when system default (pdb) is used""
2018-03-23 14:18:56 +11:00
Bruno Oliveira
ed118d7f20
Merge remote-tracking branch 'upstream/features'
2018-03-22 21:06:09 -03:00
Bruno Oliveira
5ecff65285
Merge pull request #3327 from nicoddemus/release-3.5.0
...
Release 3.5.0
2018-03-22 20:58:15 -03:00
Ronny Pfannschmidt
fc4f769888
Merge pull request #3336 from nicoddemus/filter-warnings-ref-doc
...
Add missing reference doc for filterwarnings mark
2018-03-22 18:43:17 +01:00
Bruno Oliveira
f78953fd81
Add missing reference doc for filterwarnings mark
2018-03-22 13:02:30 -03:00
Ronny Pfannschmidt
d7d4afea17
Merge pull request #3330 from nicoddemus/remove-custom-flatten
...
Remove terminal.flatten function in favor of collapse from more_itertools
2018-03-22 14:22:47 +01:00
Anthony Shaw
5a53b9aabb
move tests to test_pdb
2018-03-22 20:40:35 +11:00
Anthony Shaw
91d99affb7
assert that custom PDB class is used as breakpoint hook where supported
2018-03-22 17:40:14 +11:00
Anthony Shaw
3bca983a95
add a module global for whether the current runtime supports the builtin breakpoint function
2018-03-22 17:27:28 +11:00
Anthony Shaw
9edcb7edc6
start acceptance testing
2018-03-22 17:25:27 +11:00
Bruno Oliveira
6c2739d1e6
Add CHANGELOG for #3330
2018-03-21 20:23:17 -03:00
Bruno Oliveira
4e717eb626
Remove terminal.flatten function in favor of collapse from more_itertools
2018-03-21 20:20:46 -03:00
Bruno Oliveira
beacecf29b
Preparing release version 3.5.0
2018-03-21 20:46:07 +00:00
Bruno Oliveira
b148770066
Fix example in usage.rst
2018-03-21 20:45:28 +00:00
Bruno Oliveira
f3c87a77a7
Merge remote-tracking branch 'upstream/master' into release-3.5.0
2018-03-21 20:39:44 +00:00
Bruno Oliveira
6f95189cf7
Merge pull request #3306 from nicoddemus/2405-scope-fixture-order
...
Instantiate fixtures by scope order in test function requests
2018-03-21 17:37:05 -03:00
Ronny Pfannschmidt
add5ce0fb8
Merge pull request #3230 from brianmaissy/features
...
deprecate pytest_plugins in non-top-level conftest
2018-03-21 07:44:34 +01:00
Bruno Oliveira
59e7fd478e
Sort fixtures by scope when determining fixture closure
...
Fix #2405
2018-03-20 20:10:53 -03:00
Bruno Oliveira
9e24b09a9f
Use re_match_lines in test_class_ordering
...
"[1-a]" works fine using fnmatch_lines, but "[a-1]" breaks horribly
inside `re`.
2018-03-20 20:10:52 -03:00
Bruno Oliveira
d03e38941b
Merge pull request #3295 from brianmaissy/feature/last-failed-no-failures-behavior
...
implemented --last-failed-no-failures
2018-03-20 19:17:25 -03:00
Bruno Oliveira
672239b149
Merge pull request #3321 from jeffreyrack/'test_from_base_fix'
...
3245: Fix tests to not fail when running from base directory
2018-03-20 18:45:56 -03:00
Jeffrey Rackauckas
9b449eee15
Add self to authors
2018-03-18 21:28:20 -07:00
Jeffrey Rackauckas
c1d73bb535
Modifying changelog to reflect new changes for 3245
2018-03-18 21:27:48 -07:00
Jeffrey Rackauckas
a4cf380343
Fix tests to not fail when running from root.
2018-03-18 21:23:39 -07:00
Ronny Pfannschmidt
f61d0525a5
Merge pull request #3318 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-03-17 09:40:32 +01:00
Kale Kundert
86d6804e60
Merge pull request #3313 from tadeu/approx-array-scalar
...
Add support for `pytest.approx` comparisons between array and scalar
2018-03-16 23:29:46 -07:00
Bruno Oliveira
1fff81e21d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-03-16 18:15:28 -03:00
Bruno Oliveira
93847bfeb4
Merge pull request #3315 from pytest-dev/issue/3314
...
Allow DontReadFromInput to produce iterator without error.
2018-03-16 10:05:54 -03:00
Tadeu Manoel
a754f00ae7
Improve numpy.approx array-scalar comparisons
...
So that `self.expected` in ApproxNumpy is always a numpy array.
2018-03-16 09:01:18 -03:00
Bruno Oliveira
278d8ac74e
Fix caplog docstring: indentation caused errors during docs build
2018-03-16 00:06:15 -03:00
Bruno Oliveira
17468fc99c
Fix caplog docstring: indentation caused errors during docs build
2018-03-16 00:04:28 -03:00
Jason R. Coombs
b66019202e
Fix test failure on Python 2. Ref #3314 .
2018-03-15 21:33:58 -04:00
Jason R. Coombs
965a030564
Add changelog. Ref #3314 .
2018-03-15 21:31:12 -04:00
Jason R. Coombs
2f47624b19
Allow DontReadFromInput to produce iterator without error. Fixes #3314 .
2018-03-15 21:26:40 -04:00
Jason R. Coombs
3c3fc3bb9d
Add test capturing new expectation. Ref #3314 .
2018-03-15 21:25:50 -04:00
Tadeu Manoel
42c84f4f30
Add fixes to numpy.approx array-scalar comparisons (from PR suggestions)
2018-03-15 13:41:58 -03:00
Bruno Oliveira
fbcf1a90c9
Merge pull request #3193 from pytest-dev/ref-docs
...
Reference docs
2018-03-15 12:04:34 -03:00
Tadeu Manoel
97f9a8bfdf
Add fixes to make numpy.approx array-scalar comparisons work with older numpy versions
2018-03-14 17:10:35 -03:00
Tadeu Manoel
161d4e5fe4
Add support for pytest.approx comparisons between scalar and array (inverted order)
2018-03-14 16:29:04 -03:00
Tadeu Manoel
c34dde7a3f
Add support for pytest.approx comparisons between array and scalar
2018-03-14 15:47:21 -03:00
Ronny Pfannschmidt
1b535387bf
Merge pull request #3309 from tareqalayan/issue-3308
...
issue #3308 : fix example in documentation
2018-03-14 15:52:55 +01:00
Tareq Alayan
7e53f9432c
issue #3308 : fix example in documentation
...
https://github.com/pytest-dev/pytest/issues/3308
2018-03-14 15:44:43 +02:00
Ronny Pfannschmidt
b2b629f462
Merge pull request #3305 from nicoddemus/2370-tmpfile-close-py27
...
Suppress ``IOError`` when closing the temporary file used for capturing streams in Python 2.7
2018-03-14 06:42:06 +01:00
Bruno Oliveira
cbb2c55dea
Merge pull request #3304 from RonnyPfannschmidt/cmdoptions-removal
...
remove CmdOptions since we can use argparse.Namespace()
2018-03-13 17:48:21 -03:00
Bruno Oliveira
9517c3a2aa
Suppress `IOError` when closing the temporary file used for capturing streams in Python 2.7.
...
Fix #2370
2018-03-13 17:41:42 -03:00
Bruno Oliveira
4175ed8b43
Merge pull request #3296 from RonnyPfannschmidt/verbosity-actions
...
unify cli verbosity handling
2018-03-13 17:38:41 -03:00
Ronny Pfannschmidt
87f2003245
remove CmdOptions since we can use argparse.Namespace()
2018-03-13 18:13:56 +01:00
Ronny Pfannschmidt
2612d967f8
Merge pull request #3301 from ankostis/caplog_clear_text
...
Fix #3297 where caplog.clear() did not clear text, just records
2018-03-13 16:39:53 +01:00
Ronny Pfannschmidt
37a52607c2
unify cli verbosity handling
...
based on https://github.com/pytest-dev/pytest/issues/3294#issuecomment-372190084
we really shouldnt have N options we post mortem hack together to determine verbosity
this change starts by unifying the data, we still need to handle deprecation/removal of config.quiet
2018-03-13 07:05:22 +01:00
Bruno Oliveira
51c0256cd4
Remove :py:mod: ref from changelog: fails our linting check
2018-03-12 20:57:51 -03:00
Bruno Oliveira
f8791c9246
Merge pull request #3292 from RonnyPfannschmidt/exception-attrs
...
internal refactor port exc FOrmattedExcinfo to attrs, remove old code
2018-03-12 20:54:52 -03:00
Kostis Anagnostopoulos
02bec7a3bb
Add changelog & myself (ankostis) to authors
2018-03-13 01:46:44 +02:00
Bruno Oliveira
4459aa3d8b
Remove redundant "# content of pytest.ini" headers from examples
2018-03-12 20:09:31 -03:00
Bruno Oliveira
2e347643a3
Add ini options for logging
2018-03-12 20:09:05 -03:00
Bruno Oliveira
8629ef6a78
Add missing ini options: markers, usefixtures and xfail_strict
2018-03-12 19:43:31 -03:00
Thomas Hisch
5e92644f94
Properly reset LogCaptureHandler in caplog
...
Closes #3297
2018-03-13 00:36:51 +02:00
Bruno Oliveira
3198596f8a
Sort ini options
2018-03-12 19:33:34 -03:00
Kostis Anagnostopoulos
68375513f3
Add TC to demonstrate #3297 that caplog.clear() does not clean text
2018-03-13 00:28:47 +02:00
Bruno Oliveira
61b8ea8656
Add doctest_encoding and junit_suite_name ini options
2018-03-12 19:27:17 -03:00
Bruno Oliveira
0557ab431f
Merge pull request #3291 from RonnyPfannschmidt/small-moves
...
move some code and make nodeid computed early
2018-03-12 18:49:13 -03:00
Bruno Oliveira
8035f6cced
Fix typo in docs
2018-03-12 18:32:51 -03:00
Bruno Oliveira
0302622310
Improve CHANGELOG entry a bit
2018-03-12 18:22:12 -03:00
Bruno Oliveira
3909225bf9
Merge pull request #3300 from JulienPalard/typo
...
Typo in example, os.getcwd does not take any parameter.
2018-03-12 12:16:18 -03:00
Julien Palard
e71d907d34
Typo in example, os.getcwd does not take any parameter.
2018-03-12 15:19:26 +01:00
Brian Maissy
d2e533b8a3
implemented --last-failed-no-failures
2018-03-10 22:45:45 +02:00
Brian Maissy
54b15f5826
deprecated pytest_plugins in non-top-level conftest
2018-03-10 21:20:12 +02:00
Bruno Oliveira
d2dbbd4caa
Add CHANGELOG entry
2018-03-09 17:46:44 -03:00
Bruno Oliveira
5f9bc557ea
Fix linting
2018-03-09 17:44:39 -03:00
Ronny Pfannschmidt
543bac925a
fix if-chain in _code.source
2018-03-09 16:50:46 +01:00
Ronny Pfannschmidt
2fe56b97c9
remove unused assertion parameter in source and minor cleanups
2018-03-09 15:03:57 +01:00
Ronny Pfannschmidt
3284d575e8
readline generator no longer needs to yield empty strings
2018-03-09 14:58:11 +01:00
Ronny Pfannschmidt
a406ca14d6
remove getstatementrange_old - its documented for python <= 2.4
2018-03-09 14:48:28 +01:00
Ronny Pfannschmidt
2e5337f5e3
makr strutures: lint fixings, removal of shadowing
2018-03-09 14:39:54 +01:00
Ronny Pfannschmidt
74884b1901
turn FormattedExcinfo into a attrs class
2018-03-09 14:21:56 +01:00
Ronny Pfannschmidt
c67f45b716
simplify a few imports in _pytest._code.source
2018-03-09 12:06:50 +01:00
Ronny Pfannschmidt
50e682d2db
add changelog
2018-03-09 11:06:26 +01:00
Ronny Pfannschmidt
5e5935759e
make nodeids precalculated, there is no sane reason to commpute lazyly
2018-03-09 10:52:59 +01:00
Ronny Pfannschmidt
45b6b7df92
move nodekeywords to the mark structures
2018-03-09 10:23:18 +01:00
Ronny Pfannschmidt
c9b9d796e6
remove dead code
2018-03-09 10:22:43 +01:00
Ronny Pfannschmidt
09ce84e64e
remove unneeded commas
2018-03-09 10:21:42 +01:00
Bruno Oliveira
8243900960
Move definition of ini options to reference
2018-03-07 20:45:41 -03:00
Bruno Oliveira
c0fe4d483d
Add environment variables
2018-03-06 20:41:21 -03:00
Bruno Oliveira
18a47bfd22
Add docs for CaptureFixture
2018-03-06 20:41:21 -03:00
Bruno Oliveira
3979f9ba3a
Add pytest_plugins and pytestmark special variables
2018-03-06 20:41:21 -03:00
Bruno Oliveira
443888248a
Improve fixture reference a bit
2018-03-06 20:41:21 -03:00
Bruno Oliveira
69d49f18e9
Add pytest_addhooks
2018-03-06 20:41:21 -03:00
Bruno Oliveira
8b7e6df73d
Add register_assert_rewrite and improve signature of other functions
2018-03-06 20:41:21 -03:00
Bruno Oliveira
9c2203d381
Reorder top level: functions, marks, fixtures, hooks and objects
2018-03-06 20:41:21 -03:00
Bruno Oliveira
df3a4111a9
Sort objects by name
2018-03-06 20:41:20 -03:00
Bruno Oliveira
988ace9eb2
Add documentation for marks
2018-03-06 20:41:20 -03:00
Bruno Oliveira
ed8b1efc16
Add a CHANGELOG entry for the reference docs
...
Fix #1713
2018-03-06 20:41:20 -03:00
Bruno Oliveira
f7178654e5
Add recwarn and tmpdir fixtures to the reference docs
2018-03-06 20:41:20 -03:00
Bruno Oliveira
f1df6c5a60
Add testdir fixture to reference
2018-03-06 20:41:20 -03:00
Bruno Oliveira
66009b0f91
Add tutorial links to all references
2018-03-06 20:41:20 -03:00
Bruno Oliveira
215c6b281e
Add Monkeypatch and tutorial links for logging
2018-03-06 20:41:20 -03:00
Bruno Oliveira
adcb28f61b
Add caplog to reference
2018-03-06 20:41:20 -03:00
Bruno Oliveira
111c6d6a22
Improve pytestconfig and add record_xml_property
2018-03-06 20:41:20 -03:00
Bruno Oliveira
7ba8a4ee75
Use `pytest.` prefix for outcomes
2018-03-06 20:41:20 -03:00
Bruno Oliveira
400558cc9c
Add pytestconfig fixture
2018-03-06 20:41:20 -03:00
Bruno Oliveira
918dffba96
Add :with: modifier to raises() and deprecated_call()
2018-03-06 20:41:20 -03:00
Bruno Oliveira
44e2715529
Add sections to pytest's builtin API
2018-03-06 20:41:20 -03:00
Bruno Oliveira
b53c4246ef
Move most of 'builtin' to 'reference'
2018-03-06 20:41:19 -03:00
Bruno Oliveira
e73d4f4e1f
Add local table of contents in reference.rst
2018-03-06 20:41:19 -03:00
Bruno Oliveira
e7bce90d29
Remove basepython from testenv:docs so it can be built with Python 3
2018-03-06 20:41:19 -03:00
Bruno Oliveira
623bab4447
Use :no-auto-options: in capsys fixtures
...
Otherwise they are recognized as iterators
2018-03-06 20:41:19 -03:00
Bruno Oliveira
70f93263e9
Add reference docs to doctest_namespace
2018-03-06 20:41:19 -03:00
Bruno Oliveira
749288dcb6
Add reference docs to cache and capture fixtures
2018-03-06 20:41:19 -03:00
Bruno Oliveira
6fa9768545
Use sphinxcontrib-trio extension
...
This adds some more capabilities to sphinx, like marking
functions as decorators or with contexts
2018-03-06 20:41:19 -03:00
Bruno Oliveira
6b4565f8d1
Reorder the global toc and include 'contributing' section
2018-03-06 20:41:19 -03:00
Bruno Oliveira
6d4e72e1eb
Cleanup the links section to only external links
...
Internal links should be displayed in the side-bar
2018-03-06 20:41:19 -03:00
Bruno Oliveira
162557c2b2
Remove internal plugin list
...
This gets out of sync and shows internal plugins which don't make
much sense
2018-03-06 20:41:19 -03:00
Bruno Oliveira
d4c3850231
Create reference and moved Objects and Hooks reference from writing_plugins
2018-03-06 20:40:55 -03:00
Bruno Oliveira
28df322500
Merge pull request #3283 from jeffreyrack/3245-doc-test-failures
...
3245: Add doc to norecursedirs in tox.ini
2018-03-06 19:22:55 -03:00
Bruno Oliveira
d6ddeb395b
Merge pull request #3285 from RonnyPfannschmidt/minor-refactor
...
Minor refactors
2018-03-06 19:22:48 -03:00
Ronny Pfannschmidt
c4430e4354
extract _warn_about_missing_assertion into freestanding function
2018-03-06 10:32:41 +01:00
Ronny Pfannschmidt
fbf01bd31a
enhance skip except clause by directly using the Skipped exception
2018-03-06 10:29:26 +01:00
Jeffrey Rackauckas
e42fe5f0f9
Add doc to norecursedirs in tox.ini
2018-03-05 19:35:41 -08:00
Bruno Oliveira
ade7ad25c7
Merge remote-tracking branch 'upstream/master' into features
2018-03-05 19:48:25 -03:00
Bruno Oliveira
27c4de242f
Merge pull request #3281 from nicoddemus/release-3.4.2
...
Preparing release version 3.4.2
2018-03-05 19:42:59 -03:00
Bruno Oliveira
e8368e6c2e
Fix duplicated link in CHANGELOG
2018-03-05 07:26:38 -03:00
Bruno Oliveira
fac8208e8f
Preparing release version 3.4.2
2018-03-04 19:37:49 +00:00
Bruno Oliveira
9879ac5911
Merge pull request #3279 from nicoddemus/introduce-more_itertools
...
Re-Introduce more_itertools
2018-03-04 16:33:58 -03:00
Bruno Oliveira
51abdb80db
Merge pull request #3278 from nicoddemus/revert-more_itertools-master
...
Revert introduction of more_itertools on master
2018-03-04 16:33:31 -03:00
Bruno Oliveira
25399da904
Reintroduce more_itertools dependency
...
Reintroduce more_itertools that was added in #3265 , now in the features branch
2018-03-04 10:59:46 -03:00
Bruno Oliveira
54884b8c87
Merge branch 'revert-more_itertools-master' into introduce-more_itertools
2018-03-04 10:58:52 -03:00
Bruno Oliveira
65534682aa
Revert introduction of more_itertools
...
This was merged on master but really should be on features: we should not
add new dependencies in bug-fix releases
This reverts commits:
* cfaf3600c1
* 14a9b1ec83
2018-03-04 10:56:24 -03:00
Bruno Oliveira
e980fbbe39
Merge pull request #3277 from maiksensi/bug/3241-check-if-dir-exists
...
Use `isdir` instead of `exists`
2018-03-04 10:49:25 -03:00
Bruno Oliveira
07e768ab68
Merge pull request #3275 from maiksensi/docs/3209-add-logging-plugin
...
Add logging plugin to plugins list
2018-03-03 23:17:05 -03:00
Bruno Oliveira
9a2e0c061d
Update 3241.bugfix.rst
2018-03-03 23:14:57 -03:00
Maik Figura
056d9e8dc2
Use isdir instead of exists
2018-03-04 00:55:04 +01:00
Maik Figura
46f5d7a1bb
Add filetype to changelog fragment
2018-03-04 00:52:27 +01:00
Maik Figura
30453057e8
Add logging plugin to plugins list
2018-03-03 23:50:13 +01:00
Bruno Oliveira
08831396a5
Merge pull request #3218 from feuillemorte/3034-new-tests-first
...
#3034 Added new option "--new-first"
2018-03-02 18:33:25 -03:00
Bruno Oliveira
1549d61379
Merge pull request #3274 from feuillemorte/3268-add-deprecation
...
Added warning when "[pytest]" section is used in a ".cfg" file passed with "-c"
2018-03-02 16:34:31 -03:00
feuillemorte
f501d0021c
#3268 Fix warning variable
2018-03-02 11:28:30 +03:00
feuillemorte
a506052d12
#3268 Added changelog file
2018-03-02 10:54:31 +03:00
feuillemorte
99aab2c3f5
#3268 Added deprecation to custom configs
2018-03-02 10:52:38 +03:00
Ronny Pfannschmidt
3b757b1b8c
Merge pull request #3265 from pytest-dev/feature/always-iterable-refactor
...
Consolidate behavior by using filterfalse and always_iterable
2018-03-01 08:51:44 +01:00
Bruno Oliveira
14a9b1ec83
Add CHANGELOG for #3265
2018-02-28 17:31:11 -03:00
Bruno Oliveira
ea854086e1
Rename 3236.trivial.rst to 3236.feature.rst
2018-02-27 22:46:12 -03:00
Bruno Oliveira
0a5a6c19be
Merge pull request #3269 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-02-27 22:42:08 -03:00
Bruno Oliveira
90638b661d
Merge pull request #3270 from pytest-dev/blueyed-patch-1
...
Fix typo with test_summary_list_after_errors
2018-02-27 18:27:31 -03:00
Daniel Hahler
8239103aa9
Fix typo with test_summary_list_after_errors
2018-02-27 21:07:00 +01:00
Bruno Oliveira
a2a64546eb
Merge remote-tracking branch 'upstream/master' into features
2018-02-27 16:43:45 -03:00
Bruno Oliveira
9fcbf57163
Merge pull request #3267 from feuillemorte/3260-fix-pytest-section
...
#3260 fix pytest section
2018-02-27 16:41:45 -03:00
Bruno Oliveira
dab96cbf27
Merge pull request #3255 from nicoddemus/post-summary
...
Show "short test summary info" after tracebacks and warnings
2018-02-27 16:36:13 -03:00
Bruno Oliveira
1fb2457018
Adjust CHANGELOG
2018-02-27 14:58:27 -03:00
feuillemorte
92219e576b
#3260 Remove deprecation
2018-02-27 20:00:46 +03:00
feuillemorte
143ac5af99
#3260 Fix config.py for py27
2018-02-27 19:26:35 +03:00
feuillemorte
409b919fc0
#3260 Added test
2018-02-27 19:16:45 +03:00
feuillemorte
eadd15fe45
#3260 Added changelog file
2018-02-27 19:05:53 +03:00
feuillemorte
3f7223af44
#3260 Fix pytest section in setup ini file
2018-02-27 19:02:49 +03:00
Bruno Oliveira
a968c0fa05
Merge pull request #3264 from jeffreyrack/3236-skipif-using-platform
...
#3236 Use platform module in pytest.mark
2018-02-27 09:44:52 -03:00
Bruno Oliveira
5cb72b6188
Merge pull request #3257 from will133/continue-on-failure
...
Continue on doctest failure
2018-02-27 07:45:41 -03:00
Bruno Oliveira
20085542e2
Merge pull request #3263 from feuillemorte/3203-remove-statistic-indicator
...
#3203 Remove progress when no-capture
2018-02-27 07:33:45 -03:00
Bruno Oliveira
94050a8aaf
Remove config paramter from pytest_terminal_summary as discussed during review
2018-02-27 07:26:25 -03:00
Bruno Oliveira
9479bda392
Adjust the CHANGELOG
2018-02-27 07:03:20 -03:00
Jason R. Coombs
cfaf3600c1
Consolidate behavior by using filterfalse and always_iterable
2018-02-27 03:38:56 -05:00
Jeffrey Rackauckas
f6ad25928e
Fixing grammar.
2018-02-26 19:15:10 -08:00
Jeffrey Rackauckas
a6762f7328
Update test_skipping to test that platform can be used in xfail
2018-02-26 19:11:13 -08:00
Bruno Oliveira
4e405dd9f9
Show "short test summary info" after tracebacks and warnings
2018-02-26 21:12:33 -03:00
Bruno Oliveira
d196ab45d3
Change 1642 entry from "trivial" to "feature"
2018-02-26 19:56:53 -03:00
Bruno Oliveira
188df8100c
Small adjustment to the CHANGELOG
2018-02-26 17:14:28 -03:00
Bruno Oliveira
e8f9a91056
Small adjustment to CHANGELOG entry
2018-02-26 17:10:59 -03:00
Bruno Oliveira
44fa5a77d4
Merge pull request #3262 from nicoddemus/fix-tmpdir-docs
...
Fix broken links in getting-started
2018-02-26 16:49:15 -03:00
feuillemorte
31476c69ab
#3203 Fix tests
2018-02-26 17:39:32 +03:00
feuillemorte
6200920dc3
#3203 Added changelog file
2018-02-26 17:24:16 +03:00
feuillemorte
46c5d5355e
#3203 Remove progress when no-capture
2018-02-26 17:19:58 +03:00
Bruno Oliveira
39024a7536
Fix broken links in getting-started
...
Fix #3256
2018-02-26 10:56:27 -03:00
Jeffrey Rackauckas
307cd6630f
Add the ability to use platform in pytest.mark.skipif
2018-02-25 22:38:25 -08:00
Florian Bruhin
ae62ced080
Merge pull request #3259 from joshm91/fix_typo
...
Fix minor typo in fixture.rst
2018-02-24 21:37:40 +01:00
joshm91
6166151ee4
Fix minor typo in fixture.rst
2018-02-24 19:12:40 +00:00
Ronny Pfannschmidt
da3f4045e7
Merge pull request #3250 from RonnyPfannschmidt/mark-package
...
Mark package
2018-02-24 18:19:27 +01:00
William Lee
c21eb72924
Added documentation for the continue-on-failure flag
2018-02-23 22:42:22 -06:00
William Lee
f4cc45bb41
Turn on the continue on failure only when the flag is given
2018-02-23 22:31:11 -06:00
William Lee
7f2dd74ae9
Fixed test for the continue run
2018-02-23 21:20:14 -06:00
feuillemorte
c032d4c5d5
Merge branch 'features' of https://github.com/feuillemorte/pytest into 3034-new-tests-first
2018-02-23 23:55:28 +03:00
feuillemorte
e865f2a235
#3034 Fix comments
2018-02-23 22:49:17 +03:00
William Lee
8d90591b33
Merge remote-tracking branch 'upstream/features' into continue-on-failure
2018-02-22 21:01:31 -06:00
William Lee
14cd1e9d94
Added the feature in change log for #3149
2018-02-22 21:01:19 -06:00
William Lee
fbc45be83f
Fixed #3149 where doctest does not continue to run when there is a failure
2018-02-22 21:00:54 -06:00
Bruno Oliveira
0a3c80e959
Merge pull request #3253 from thisch/nolooggingtest
...
Add pdb test with disabled logging plugin
2018-02-22 22:19:47 -03:00
Bruno Oliveira
bedceaacc4
Merge pull request #3249 from a-feld/request-fixture-reference-cycle
...
Fix PseudoFixtureDef reference cycle.
2018-02-22 19:23:56 -03:00
Bruno Oliveira
1127d519db
Merge pull request #3254 from altendky/patch-1
...
Correct docs to config.pluginmanager.get_plugin()
2018-02-22 19:14:47 -03:00
Bruno Oliveira
9959164c9a
Add CHANGELOG entry for #3250
2018-02-22 18:55:25 -03:00
Bruno Oliveira
60358b6db8
Fix linting
2018-02-22 18:49:20 -03:00
Kyle Altendorf
b5ac61657a
Correct docs to config.pluginmanager.get_plugin()
...
`getplugin()` is deprecated in favor of `get_plugin()`.
dd97c94035/_pytest/config.py (L261)
2018-02-22 13:48:59 -05:00
Thomas Hisch
0f58fc881b
Add pdb test with disabled logging plugin
...
Implement the test from #3210 , which was not merged yet, because the PR was
abandoned in favor or #3234 .
2018-02-22 19:26:46 +01:00
Ronny Pfannschmidt
2cd69cf632
sort out import misstake
2018-02-22 15:18:17 +01:00
Ronny Pfannschmidt
935dd3aaa5
simplify complexyity in mark plugin modifyitems
2018-02-22 15:11:55 +01:00
Ronny Pfannschmidt
c8d24739ed
move current mark datastructures to own module
2018-02-22 14:43:01 +01:00
Ronny Pfannschmidt
be2e3a973e
remove complexity from match_keywords
2018-02-22 14:30:32 +01:00
Ronny Pfannschmidt
cef0423b27
move the keyword/mark matching to the "legacy" module
2018-02-22 14:26:22 +01:00
Ronny Pfannschmidt
de2de00de9
update setup.py for the mark package
2018-02-22 14:19:31 +01:00
Ronny Pfannschmidt
25a3e9296a
reduce the complexity of skipping terminal summary
2018-02-22 14:18:49 +01:00
Ronny Pfannschmidt
cf40c0743c
move mark evaluator into mark package
2018-02-22 14:05:10 +01:00
Ronny Pfannschmidt
c31e1a3797
turn mark into a package
2018-02-22 13:36:33 +01:00
Allan Feldman
48548767fc
Use a frozen attr class for PseudoFixtureDef.
2018-02-21 23:15:39 -08:00
Allan Feldman
7536e949b1
Add changelog entry.
2018-02-21 22:42:44 -08:00
Allan Feldman
287c003cfd
Add myself to AUTHORS.
2018-02-21 22:42:44 -08:00
Allan Feldman
aa53e37fa2
Add a test to expose leaked PseudoFixtureDef types.
2018-02-21 22:42:44 -08:00
Ronny Pfannschmidt
54e63b7dd5
Merge pull request #2770 from HPENetworking/master
...
Make record_xml_property generic and compatible with xdist and markers.
2018-02-22 07:38:55 +01:00
Ronny Pfannschmidt
dd97c94035
Merge pull request #3240 from codetriage-readme-bot/codetriage-badge
...
Add CodeTriage badge to pytest-dev/pytest
2018-02-22 07:38:31 +01:00
Ronny Pfannschmidt
264e455410
Merge pull request #3248 from durocher/master
...
Fix approx default tolerances for Decimal
2018-02-22 07:35:56 +01:00
Allan Feldman
75f11f0b65
Fix reference cycle caused by PseudoFixtureDef.
...
Python types have reference cycles to themselves when they are created. This is
partially caused by descriptors which get / set values from the __dict__
attribute for getattr / setattr on classes.
This is not normally an issue since types tend to remain referenced for the
lifetime of the Python process (and thus never become garbage).
However, in the case of PseudoFixtureDef, the class is generated in
_get_active_fixturedef and later discarded when pytest_fixture_setup returns.
As a result, the generated PseudoFixtureDef type becomes garbage.
This is not really a performance issue but it can lead to some problems when
making tests and assertions about garbage when using pytest.
This garbage creation problem can be rectified by returning a namedtuple
instance which is functionally the same. In the modified code, the namedtuple
is allocated / deallocated using reference counting rather than having to use
the garbage collector.
2018-02-21 21:40:54 -08:00
Bruno Oliveira
45d0a21294
Fix README because of code triage badge
2018-02-21 20:42:09 -03:00
Bruno Oliveira
147b43f832
Small changelog tweak
2018-02-21 20:31:33 -03:00
Bruno Oliveira
7336dbb979
Merge pull request #3246 from RonnyPfannschmidt/remove-addcall-in-tests
...
remove addcall in the terminal tests
2018-02-21 19:42:53 -03:00
mike
6e14585ca2
Fix approx default tolerances for Decimal
2018-02-21 23:08:23 +01:00
Bruno Oliveira
567b1ea7a1
Move user_properties to the end of parameter list for backward compatibility
2018-02-21 17:56:49 -03:00
Bruno Oliveira
d838193d2d
Add note about deprecating record_xml_property
...
Also make record_xml_property return record_property directly
2018-02-21 17:45:52 -03:00
Bruno Oliveira
d844ad18c2
Fix formatting of CHANGELOG entry
2018-02-21 15:40:25 -03:00
Ronny Pfannschmidt
3d4d0a2614
remove addcall in the terminal tests
2018-02-21 18:56:20 +01:00
Bruno Oliveira
7a62619a75
Merge remote-tracking branch 'upstream/master' into features
2018-02-21 10:39:55 -03:00
Bruno Oliveira
dae74b674e
Merge pull request #3242 from nicoddemus/delete-changelog-3.4.1
...
Delete changelog entries for 3.4.1 release
2018-02-21 10:38:53 -03:00
Bruno Oliveira
2a99e5dd2a
Delete changelog entries for 3.4.1 release
...
Unfortunately due to hawkowl/towncrier#99 those news fragments were
not deleted at the time of CHANGELOG generation.
2018-02-20 23:45:21 -03:00
Carlos Jenkins
8b49ddfa58
Renamed the fixture record_xml_property to record_property and adapted logic so that the properties are passed to the TestReport object and thus allow compatibility with pytest-xdist.
2018-02-20 15:46:26 -06:00
Bruno Oliveira
9361d48b61
Merge pull request #3239 from nicoddemus/release-3.4.1
...
Release 3.4.1
2018-02-20 18:08:47 -03:00
codetriage-readme-bot
ebddac6a5c
Add CodeTriage badge to pytest-dev/pytest
...
Adds a badge showing the number of people helping this repo on CodeTriage.
[](https://www.codetriage.com/pytest-dev/pytest )
## What is CodeTriage?
CodeTriage is an Open Source app that is designed to make contributing to Open Source projects easier. It works by sending subscribers a few open issues in their inbox. If subscribers get busy, there is an algorithm that backs off issue load so they do not get overwhelmed
[Read more about the CodeTriage project](https://www.codetriage.com/what ).
## Why am I getting this PR?
Your project was picked by the human, @schneems. They selected it from the projects submitted to https://www.codetriage.com and hand edited the PR. How did your project get added to [CodeTriage](https://www.codetriage.com/what )? Roughly 11 months ago, [cacoze](https://github.com/cacoze ) added this project to CodeTriage in order to start contributing. Since then, 32 people have subscribed to help this repo.
## What does adding a badge accomplish?
Adding a badge invites people to help contribute to your project. It also lets developers know that others are invested in the longterm success and maintainability of the project.
You can see an example of a CodeTriage badge on these popular OSS READMEs:
- [](https://www.codetriage.com/rails/rails ) https://github.com/rails/rails
- [](https://www.codetriage.com/crystal-lang/crystal ) https://github.com/crystal-lang/crystal
## Have a question or comment?
While I am a bot, this PR was manually reviewed and monitored by a human - @schneems. My job is writing commit messages and handling PR logistics.
If you have any questions, you can reply back to this PR and they will be answered by @schneems. If you do not want a badge right now, no worries, close the PR, you will not hear from me again.
Thanks for making your project Open Source! Any feedback is greatly appreciated.
2018-02-20 10:51:51 -06:00
Bruno Oliveira
b319375592
Preparing release version 3.4.1
2018-02-20 01:43:59 +00:00
Bruno Oliveira
f8fdf0ae91
Add --yes to towncrier to automatically remove files
2018-02-20 01:43:20 +00:00
Bruno Oliveira
053fc118b7
Merge pull request #3199 from nicoddemus/publish-tag-3060
...
Implement deploying to PyPI by pushing a tag
2018-02-19 22:34:35 -03:00
Bruno Oliveira
97bb6abcfa
Merge pull request #3234 from thisch/showcapture_log_support
...
Add captured-log support to --show-capture
2018-02-19 20:46:50 -03:00
Thomas Hisch
acda6c46fb
Partially revert "Remove --no-print-logs option"
...
We'll deprecate --no-print-logs beginning with pytest-4.0.
This reverts commit ac7eb63a6b .
2018-02-19 20:34:11 +01:00
Thomas Hisch
ac7eb63a6b
Remove --no-print-logs option
...
This option is superseded by the --show-capture option. With --no-print-logs
it was possible to only disable the reporting of captured logs, which is no
longer possible with --show-capture. If --show-capture=no is used, no
captured content (stdout, stderr and logs) is reported for failed tests.
2018-02-18 20:48:07 +01:00
Thomas Hisch
51ece00923
Add captured-log support to --show-capture
...
Fixes : #3233
2018-02-18 20:18:37 +01:00
Bruno Oliveira
b486e1294b
Merge pull request #3222 from The-Compiler/match-msg
...
Remove "matching '...'" part from the pytest.raises message
2018-02-17 21:18:05 -02:00
Bruno Oliveira
3bc8b50a0d
Merge pull request #3228 from thisch/update_attr
...
Update minimal attrs library to v17.4.0
2018-02-17 20:19:07 -02:00
Bruno Oliveira
81fa547fa8
Add CHANGELOG entry about changed attrs req
2018-02-17 20:18:32 -02:00
Bruno Oliveira
9d879bee36
Merge pull request #3215 from pytest-dev/bugfix/985/disable-output-capturing-in-doctest
...
Disable output capturing in doctest
2018-02-17 18:39:32 -02:00
Brian Maissy
069f32a8c4
print captured logs before entering pdb
2018-02-17 20:32:49 +02:00
Jason R. Coombs
4131d3f300
Probably it's best to write the err stream to stderr.
2018-02-17 12:13:33 -05:00
Jason R. Coombs
254e357076
Correct the broken indentation.
2018-02-17 12:10:29 -05:00
Bruno Oliveira
f263932883
Merge pull request #3232 from nicoddemus/merge-upstream
...
Merge master into features
2018-02-17 12:59:55 -02:00
Bruno Oliveira
0f6879bf5e
Small update to changelog/README.rst
2018-02-17 10:20:41 -02:00
Bruno Oliveira
bfe2cbe875
Implement publishing to PyPI by pushing a tag
...
Fix #3060
2018-02-17 10:13:25 -02:00
Bruno Oliveira
69d608aec3
Merge remote-tracking branch 'upstream/master' into merge-upstream
2018-02-17 09:38:06 -02:00
Bruno Oliveira
dfbaa20240
Bring test_live_logs_unknown_sections directly due to merge conflicts
2018-02-17 09:36:46 -02:00
Bruno Oliveira
fa8354e872
Merge pull request #3213 from thisch/collection_deselection
...
Show deselection count before tests are executed
2018-02-17 09:03:26 -02:00
Bruno Oliveira
00d3001138
Merge pull request #3188 from s0undt3ch/issues/3184
...
Don't traceback on unkown sections.
2018-02-17 09:02:44 -02:00
Bruno Oliveira
05faa69c37
Merge pull request #3194 from s0undt3ch/feature/logstart-logfinish
...
Fix issue where a new line was always written for the live log finish section
2018-02-16 21:19:38 -02:00
Bruno Oliveira
b1abe5db23
Merge pull request #3201 from uSpike/deselect_cli
...
Add "--deselect" command line option
2018-02-16 20:50:22 -02:00
Jordan Speicher
774c539f1a
Add --deselect command line option
...
Fixes #3198
2018-02-16 08:17:37 -06:00
Bruno Oliveira
df2f019997
Slight rewording in the CHANGELOG
2018-02-15 19:45:05 -02:00
Bruno Oliveira
6bc45d158d
Merge pull request #3186 from brianmaissy/bugfix/print_captured_stdout_before_entering_pdb
...
Added printing of captured stdout before entering pdb
2018-02-15 19:38:23 -02:00
Bruno Oliveira
371eb8c6af
Merge pull request #3206 from mbachry/fix-unittest-mock
...
Fix mock patchings detection when both mock and unittest.mock are present
2018-02-15 19:35:44 -02:00
Thomas Hisch
82cdc487ce
Fix raised warning when attrs 17.4.0 is used
...
Related: #3223
2018-02-15 21:09:44 +01:00
Jason R. Coombs
435b8ddc7c
Rename method for additional clarity.
2018-02-15 09:17:33 -05:00
Florian Bruhin
3cbf0c8ec0
Raise unexpected exceptions with pytest.raises() using match=
2018-02-15 12:11:56 +01:00
Florian Bruhin
9849022eb2
Remove "matching '...'" part from the pytest.raises message
...
When a test with pytest.raises(ValueError, match='foo') doesn't raise, the
following error is printed:
Failed: DID NOT RAISE <class 'ValueError'> matching 'foo'
This error message is confusing as it implies a ValueError was raised, but the
message wasn't matching 'foo'.
I first considered rewording it somehow to preserve the match pattern in it, but
I don't think that's worthwhile as the pattern should usually be apparent from
the stacktrace anyways (hard-coded, as parametrization, or with --showlocals for
more sophisticated cases).
2018-02-14 19:20:00 +01:00
Jason R. Coombs
18c84a1904
Restrict fix to macOS only. Ref #3215 .
2018-02-13 17:51:20 -05:00
Thomas Hisch
6496131b79
Show deselection count before tests are exectued
...
Fixes #1527
2018-02-13 22:27:02 +01:00
feuillemorte
dff0500114
#3034 Added new option "--new-first"
2018-02-13 22:49:28 +03:00
Jason R. Coombs
247cdb835a
Remove xfail; tests now pass on macOS. Ref #985 .
2018-02-13 12:41:19 -05:00
Jason R. Coombs
ce1872e7e8
Merge branch 'master' into bugfix/985/disable-output-capturing-in-doctest
2018-02-13 12:33:07 -05:00
Jason R. Coombs
d845af7b24
Add changelog. Ref #985 .
2018-02-13 12:32:00 -05:00
Jason R. Coombs
391553887b
Disable output capturing in doctest to avoid losing reference to stdout. Fixes #985 .
2018-02-13 12:08:39 -05:00
Brian Maissy
7656fc8320
Added printing of captured stdout and stderr before entering pdb
2018-02-12 23:17:51 +02:00
Marcin Bachry
b6166dccb4
Fix mock patchings detection when both mock and unittest.mock are present
2018-02-12 20:29:37 +01:00
Bruno Oliveira
e7bcc854d9
Merge pull request #3202 from rouge8/pytest-raises-sphinx-parameters
...
Add Sphinx parameter docs for `match` and `message` args to `pytest.raises()`
2018-02-10 02:32:56 -02:00
Bruno Oliveira
ffee213c85
Update and rename 3202.trivial.rst to 3202.doc.rst
2018-02-09 22:51:15 -02:00
Andy Freeland
e5b527d0e3
Add Sphinx parameter docs for match and message args to pytest.raises()
2018-02-09 16:28:17 -08:00
Bruno Oliveira
063e2da967
Merge pull request #3176 from feuillemorte/1478_no_stdout_option
...
#1478 Added --no-stdout option
2018-02-09 18:36:36 -02:00
feuillemorte
da5882c2d5
#1478 Add doc and remove print
2018-02-09 21:36:48 +03:00
Bruno Oliveira
c04e248de5
Rename 3161.bugfix to 3161.bugfix.rst
2018-02-09 14:06:24 -02:00
Pedro Algarvio
d776e5610e
Fix issue where a new line was always written for the live log finish section
2018-02-09 11:17:01 +00:00
Bruno Oliveira
bba258aa5e
Merge pull request #3190 from s0undt3ch/feature/logs-stream
...
Expose `log_cli` as a CLI parser option.
2018-02-08 17:07:48 -02:00
Florian Bruhin
3685c1bc01
Merge pull request #3192 from nicoddemus/pr-template
...
Add changelog/README.rst and streamline our PR template text
2018-02-08 19:20:54 +01:00
Bruno Oliveira
a4cbd03535
Fix linting
2018-02-08 13:22:32 -02:00
feuillemorte
71367881ed
#1478 Added --show-capture=both option (fix comments)
2018-02-08 16:21:22 +03:00
Bruno Oliveira
ad7d63df97
Rename _stream_logs_enabled to _log_cli_enabled and remove _stream_logs
2018-02-08 09:48:51 -02:00
Bruno Oliveira
eea169e515
Code review suggestions
2018-02-08 08:03:14 -02:00
Pedro Algarvio
0b71255dda
Expose log_cli as a CLI parser option.
2018-02-08 09:42:53 +00:00
Bruno Oliveira
ce0a9aadec
Merge pull request #3127 from feuillemorte/1642-add-rootdir-option
...
#1642 add rootdir option
2018-02-07 18:18:59 -02:00
Bruno Oliveira
16c52f05f1
Merge pull request #3177 from nicoddemus/mention-force-result
...
Mention outcome.force_result() and add link to pluggy's docs
2018-02-07 18:16:16 -02:00
Bruno Oliveira
f72182977d
Merge pull request #3183 from cheezman34/master
...
Fix ordering of tests to minimize fixture creating
2018-02-07 18:15:41 -02:00
Bruno Oliveira
ed12cf3fb3
Merge pull request #3189 from s0undt3ch/feature/logstart-logfinish
...
Additionally handle logstart and logfinish hooks
2018-02-07 18:09:45 -02:00
Bruno Oliveira
40d0ade2d9
Add changelog/README.rst and streamline our PR template text
...
This streamlines the PR template text and adds a more in-depth explanation
about how the changelog entries work because this topic is a common source of
confusion:
- How to name the files.
- Which formatting to use (people in general assume it is Markdown).
- Recommend adding `.rst` extension to changelog files to help with the
above (`towncrier` doesn't care).
This was heavily inspired by the excellent python-trio/trio docs.
2018-02-06 22:20:39 -02:00
Bruno Oliveira
29a074eae3
Merge pull request #3156 from thisch/junit_xml_log_fix
...
Add captured log msgs to junit xml file
2018-02-06 21:42:11 -02:00
feuillemorte
1a650a9eb9
#1478 Added --show-capture option
2018-02-06 23:38:51 +03:00
Bruno Oliveira
ea06c1345f
Update changelog wording slightly
2018-02-06 15:45:37 +00:00
Pedro Algarvio
00d8787bb8
Add name to AUTHORS
2018-02-06 15:45:37 +00:00
Pedro Algarvio
67558e0e22
Additionally handle logstart and logfinish hooks
2018-02-06 15:45:36 +00:00
Bruno Oliveira
7152707280
Update changelog entry to "trivial" as it is a temporary workaround
...
I think this is a more appropriate category given that the underlying problem still exists
2018-02-06 08:54:44 -02:00
Bruno Oliveira
2d0c1e941e
Fix versionadded tag in caplog function
2018-02-05 20:22:21 -02:00
Bruno Oliveira
42c1f85257
Update CHANGELOG
2018-02-05 20:07:42 -02:00
Pedro Algarvio
0d15a46863
Don't traceback on unkown sections.
2018-02-05 19:09:38 +00:00
Ronny Pfannschmidt
570edb466b
Merge pull request #3185 from nicoddemus/remove-ignore-py37
...
Support py37 officially
2018-02-05 10:04:34 +01:00
Ronny Pfannschmidt
7c80c81433
Merge pull request #3152 from brianmaissy/silently_fail_to_import_during_postmortem
...
If we fail to import doctest.UnexpectedException during postmortem, fail quietly
2018-02-05 10:04:00 +01:00
Bruno Oliveira
9202ba91cf
Merge pull request #3187 from brianmaissy/bugfix/skip_failing_pdb_doctest_test_on_mac
...
skip failing pdb/doctest test on mac
2018-02-03 23:35:39 -02:00
Bruno Oliveira
ea8997a108
Update wording in CHANGELOG
2018-02-03 20:21:06 -02:00
Brian Maissy
867344d0d7
move import to top
2018-02-04 00:03:17 +02:00
Brian Maissy
e64feaba7a
xfail is better than skip
2018-02-03 23:28:37 +02:00
Brian Maissy
74633815aa
skip failing pdb/doctest test on mac
2018-02-03 23:24:11 +02:00
Thomas Hisch
c0ef4a4d35
Add captured log msgs to junit xml file
...
For each test this adds the captured log msgs to a system-* tag in the junit
xml output file. The destination of the system-* tag is specified by
junit_logging ini option.
2018-02-03 09:39:29 +01:00
Bruno Oliveira
e289c60c3a
Support py37 officially
...
Python 3.7.0b1 has been released:
https://www.python.org/downloads/release/python-370b1/
Fix #3168
2018-02-02 17:15:16 -02:00
Bruno Oliveira
8c81722a0c
Merge pull request #3167 from nicoddemus/fix-py37
...
Fix test for py37
2018-02-02 17:13:00 -02:00
Bruno Oliveira
3425edd2a5
Reword changelog a bit
2018-02-01 19:54:51 -02:00
Bruno Oliveira
37d836d754
Reword docs slightly
2018-02-01 19:34:15 -02:00
Aaron
4458e65fe7
Fix ordering of tests to minimize fixture creating
2018-02-01 13:07:45 -08:00
feuillemorte
3eb6cad222
#1642 Fix comments
2018-02-01 11:20:37 +03:00
feuillemorte
936651702b
#1642 Fix tests
2018-02-01 00:27:48 +03:00
feuillemorte
9f1772e679
#1642 Resolve conflicts
2018-02-01 00:18:28 +03:00
feuillemorte
741b571f3b
#1642 fix tests and config.py
2018-02-01 00:03:24 +03:00
Bruno Oliveira
653abad27b
Mention outcome.force_result() and add link to pluggy's docs
...
Related to #3169
2018-01-31 18:18:15 -02:00
feuillemorte
949a620d3a
#1478 Added --no-stdout option
2018-01-31 22:36:28 +03:00
Bruno Oliveira
89a55d85a9
Merge pull request #3166 from alanbato/typo_for_parametrize
...
Switch `for_parameterize` to `for_parametrize`
2018-01-30 21:41:14 -02:00
Bruno Oliveira
ef7df8f167
Small update to CHANGELOG
2018-01-30 21:40:14 -02:00
Bruno Oliveira
90a8faabba
Fix test for py37
...
In previous Python versions, the list of warnigns appears like:
... list of emitted warnings is: [UserWarning('user',)].
In Python 3.7 apparently the string representation has been improved to:
... list of emitted warnings is: [UserWarning('user')].
Fix #3011
2018-01-30 20:33:07 -02:00
Alan Velasco
e12a588c39
Merge branch 'master' into typo_for_parametrize
2018-01-30 16:22:54 -06:00
Alan Velasco
547070e2d8
Switch for_parameterize to for_parametrize
2018-01-30 16:20:43 -06:00
Bruno Oliveira
f2fb841b29
Merge remote-tracking branch 'upstream/master' into features
2018-01-30 20:12:14 -02:00
Bruno Oliveira
3256fa9ee9
Add devpi-client to tasks requirements
2018-01-30 20:10:40 -02:00
Bruno Oliveira
dc9a9ec4c2
Merge pull request #3162 from nicoddemus/release-3.4.0
...
Release 3.4.0
2018-01-30 20:08:36 -02:00
Bruno Oliveira
527845ef29
Changelog adjustments suggested during review
2018-01-30 19:49:08 +00:00
Bruno Oliveira
489e638b4e
Preparing release version 3.4.0
2018-01-30 19:47:56 +00:00
Bruno Oliveira
13ee1cffed
Suggest to update all dependencies when preparing releases
2018-01-30 19:44:06 +00:00
Bruno Oliveira
4c148bd0ef
Fix imports in failure_demo.py
2018-01-30 19:44:06 +00:00
Bruno Oliveira
71a7b3c062
Merge pull request #3142 from thisch/only_colorize_levelname
...
Colorize live-log levelnames
2018-01-30 17:41:18 -02:00
Thomas Hisch
ebab1b6c69
live-logging: Colorize levelname
2018-01-30 18:21:12 +01:00
Bruno Oliveira
49773b573f
Merge pull request #3132 from raphaelcastaneda/feature/add-record-xml-attribute
...
implement #3130 - add record_xml_attribute fixture
2018-01-29 15:42:55 -02:00
Ronny Pfannschmidt
32979def7d
Merge pull request #3158 from nicoddemus/cache-getvalue
...
Replace deprecated option.getvalue by option.getoption in cache plugin
2018-01-29 13:57:45 +01:00
Bruno Oliveira
ab00c3e911
Add .pytest_cache directory to gitignore
2018-01-29 08:44:11 -02:00
Bruno Oliveira
6e4efccc38
Rename test_cache to test_cacheprovider for consistency with cacheprovider
2018-01-29 08:40:29 -02:00
Bruno Oliveira
269eeec702
Replace deprecated option.getvalue by option.getoption in cacheprovider
2018-01-29 08:40:29 -02:00
Bruno Oliveira
0e1be01b7a
Merge pull request #3108 from cheezman34/features
...
Optimize reorder_items in fixtures.py
2018-01-27 23:21:09 -02:00
Bruno Oliveira
aff463a3c4
Merge remote-tracking branch 'upstream/master' into features
2018-01-27 12:28:43 -02:00
Bruno Oliveira
b3247c1d03
Merge pull request #3044 from RonnyPfannschmidt/parameterset-empty-enable-xfail
...
empty parameterset - enable opt to xfail
2018-01-27 12:23:49 -02:00
Bruno Oliveira
169635e889
Move example of empty_parameter_set_mark closer to the options
2018-01-27 11:02:32 -02:00
Bruno Oliveira
cd0b2ace67
Merge pull request #3150 from alanbato/pytest_cache
...
Change cache directory structure to include `pytest`
2018-01-27 10:08:56 -02:00
Ronny Pfannschmidt
17a1ed5edf
use a constant to sort out repeated use of the EMPTY_PARAMETERSET_OPTION
2018-01-26 12:12:26 +01:00
Ronny Pfannschmidt
a54cd4c2fd
correct testing and usage of the empty_parameter_set_mark config option
2018-01-26 12:05:52 +01:00
Ronny Pfannschmidt
77de45cce3
enhance docs for empty_parameter_set_mark according to review comments
2018-01-26 12:01:27 +01:00
Ronny Pfannschmidt
d550c33cd0
s/empty_parameterset/empty_parameter_set_mark
2018-01-26 11:56:24 +01:00
Bruno Oliveira
a58099022a
Merge pull request #3124 from nicoddemus/logging-3013
...
Changes in the logging plugin for 3.4
2018-01-26 08:52:43 -02:00
Ronny Pfannschmidt
3bc7ced97a
Merge pull request #3153 from brianmaissy/document_not_to_call_main_multiple_times
...
Added note that calling pytest.main multiple times from the same process is not recommended because of import caching
2018-01-26 11:47:16 +01:00
Ronny Pfannschmidt
8979b2a9d7
document empty_parameterset in customize.rst
2018-01-26 11:26:48 +01:00
Ronny Pfannschmidt
d4c11e58aa
exted empty parameterset check with reason test
2018-01-26 11:18:50 +01:00
Ronny Pfannschmidt
7f83605c81
fix empty parameterset tests by mocking a config object
2018-01-26 11:10:00 +01:00
Ronny Pfannschmidt
37b41de779
fix #2527 - introduce a option to pic the empty parameterset action
2018-01-26 11:10:00 +01:00
Ronny Pfannschmidt
bf2c10c810
parameterset: refactor marking empty parametersets
2018-01-26 11:10:00 +01:00
Brian Maissy
4285325cb8
Added note that calling pytest.main multiple times from the same process is not recommended because of import caching
2018-01-25 23:07:34 +02:00
Brian Maissy
2a1b1107c5
If we fail to import doctest.UnexpectedException during postmortem, fail quietly and continue
2018-01-25 22:28:27 +02:00
Bruno Oliveira
cbbd606b6c
Reword changelog
2018-01-25 17:21:54 -02:00
feuillemorte
ace772c743
Merge branch '1642-add-rootdir-option' of github.com:feuillemorte/pytest into 1642-add-rootdir-option
2018-01-25 19:46:43 +03:00
feuillemorte
3a004a4507
added rootdir description to customize.rst
2018-01-25 19:46:22 +03:00
Alan Velasco
a24ca9872f
Change cache directory name to include pytest
2018-01-25 07:50:08 -06:00
feuillemorte
503e00f7ff
#1642 Remove adding rootdir to sys path
2018-01-25 15:57:29 +03:00
feuillemorte
0cfa975930
#1642 Fix tests
2018-01-25 15:57:04 +03:00
Bruno Oliveira
b8be339632
Merge pull request #3148 from nicoddemus/deprecate-old-style-classes-2147
...
All classes now subclass object for better py3 compatibility
2018-01-25 10:41:28 -02:00
Bruno Oliveira
2aad8c0fce
Merge pull request #3147 from nicoddemus/issue-3103
...
'-o' option no longer swallows all other non-options after it
2018-01-25 10:41:18 -02:00
Bruno Oliveira
15cbd61159
Change caplog.get_handler(when) to caplog.get_records(when)
...
While updating the docs I noticed that caplog.get_handler() exposes
the underlying Handler object, which I think it is a bit too much
detail at this stage. Update to return the records directly instead.
2018-01-24 19:08:49 -02:00
Bruno Oliveira
2f955e0c99
Update documentation: rewording and move things for better reading flow
2018-01-24 18:42:59 -02:00
Bruno Oliveira
af37778b0d
All classes now subclass object for better py3 compatibility
...
Fix #2147
2018-01-24 18:23:42 -02:00
Bruno Oliveira
3f5e9ea71e
Fix -o behavior to no longer swallow all remaining options
...
The current behavior was too error-prone because a "-o" option would
swallow all the following non-option parameters:
pytest -o foo=bar path/to/test.py
path/to/test.py would be captured by the -o option, and would fail
because "path/to/test.py" is not in the format "key=value".
2018-01-23 21:19:16 -02:00
Bruno Oliveira
443275f025
Reword changelog a bit
2018-01-23 21:19:04 -02:00
Bruno Oliveira
8426c57a9e
Ensure changes in the message in the future do not make the test pass by accident
2018-01-23 21:18:59 -02:00
Aron Coyle
30ca9f9d38
Add endline
2018-01-23 21:18:51 -02:00
Aron Coyle
46d87deb5d
Add changelog update authors
2018-01-23 21:18:45 -02:00
Aron Coyle
203508d9f3
cleanup test cases
2018-01-23 21:18:37 -02:00
Andrew Toolan
2c7f94fdb9
Added basic fix and test
2018-01-23 21:18:10 -02:00
Bruno Oliveira
ff90c9e237
Merge pull request #3116 from brianmaissy/pexpect_test_hangs_on_mac
...
use flush in order to avoid hanging on mac
2018-01-23 19:32:19 -02:00
Bruno Oliveira
b4e8861aa5
Fix typos
2018-01-23 19:02:32 -02:00
Bruno Oliveira
baa189f5a3
Merge pull request #3131 from soyrice/master
...
Improve readability of Getting Started guide
2018-01-23 17:48:11 -02:00
Bruno Oliveira
a7066ba837
Update formatting in the CHANGELOG
2018-01-23 17:31:07 -02:00
Bruno Oliveira
113bfb6be8
Report 'call' phase as 'live log call'
...
As commented in review, this makes it consistent with the headers shown
by stdout/stderr capturing ("Captured log call")
2018-01-22 21:43:35 -02:00
Bruno Oliveira
9f4688e549
Remove unnecessary -s from test_log_cli_enabled_disabled
2018-01-22 21:26:14 -02:00
Bruno Oliveira
3a9d0b26d5
Use pytest_runtest_logstart to signal the start of a new test
...
This also simplifies the code a bit because we don't need to keep
a set of ids anymore
2018-01-22 21:20:48 -02:00
Raphael Castaneda
a5e60b6a2d
implement #3130 - adding record_xml_attribute fixture
...
update incorrect expected attribute value in test_record_attribute
attr names must be strings
Update CHANGELOG formatting
update usage documentation
Fix versionadded for record_xml_attribute
Indent the xml schema properly inside the warning box in the docs
2018-01-22 15:14:53 -08:00
Bruno Oliveira
0df42b4426
Show a header for each testing phase during live logging
...
As suggested during review
2018-01-22 21:00:52 -02:00
Bruno Oliveira
0d96a5bf90
Merge pull request #3135 from brianmaissy/doc/clarify_pytest_fixture_setup_with_fixture_that_returns_None
...
Clarify a possible confusion when using pytest_fixture_setup with fixture functions that return None
2018-01-22 18:02:33 -02:00
Bruno Oliveira
060f68bd90
Merge pull request #3137 from brianmaissy/doc/note_that_certain_hooks_cant_be_used_with_hookwrapper
...
Document hooks (defined with historic=True) which cannot be used with hookwrapper=True
2018-01-22 18:00:35 -02:00
Bruno Oliveira
e5739a3115
Merge pull request #3136 from brianmaissy/doc/document_warning_filtering_behavior
...
Clarify that warning capturing doesn't change the warning filter by d…
2018-01-22 17:45:36 -02:00
Bruno Oliveira
8a8797df80
Small changelog formatting
2018-01-21 23:21:21 -02:00
Brian Maissy
8994603d46
Document hooks (defined with historic=True) which cannot be used with hookwrapper=True
2018-01-21 23:17:16 +02:00
Brian Maissy
5c0b340a4b
Clarify that warning capturing doesn't change the warning filter by default
2018-01-21 22:43:00 +02:00
Brian Maissy
196dcc37a8
Clarify a possible confusion when using pytest_fixture_setup with fixture functions that return None
2018-01-21 21:50:26 +02:00
feuillemorte
83034bbd48
#1642 Fix rootdir option
2018-01-20 22:30:01 +03:00
Cyrus Maden
0ab57c4139
Typo fix: "handeling" --> "handling"
2018-01-20 11:12:59 -08:00
Bruno Oliveira
29a7b5e064
Initialize log_cli_handler to None during LoggingPlugin init
...
Some of testdir's functionality bypasses pytest_runtestloop so this
attribute needs to be set early
2018-01-20 14:19:45 -02:00
Bruno Oliveira
27ae270159
Mention in docs that log messages of level WARNING or above are captured
2018-01-20 12:08:51 -02:00
Bruno Oliveira
2e40a8b3ca
Fix test_caplog_captures_for_all_stages by setting log level
2018-01-20 12:04:28 -02:00
Bruno Oliveira
18e053546c
Use six.StringIO and __name__ in test_live_logging_suspends_capture
2018-01-20 12:02:55 -02:00
Bruno Oliveira
9dbcac9af3
Suspend stdout/stderr capturing when emitting live logging messages
2018-01-20 12:02:55 -02:00
Bruno Oliveira
4a436572a8
Simplify test assertions a bit
2018-01-20 12:02:55 -02:00
Bruno Oliveira
97a4967b03
Improve code formatting
2018-01-20 12:02:55 -02:00
Bruno Oliveira
8f6a5928f7
Add newline before log messages and enable -v output when log_cli is enabled
2018-01-20 12:02:55 -02:00
Bruno Oliveira
5d89a93977
Small improvements to tests suggested during review
2018-01-20 12:02:54 -02:00
Bruno Oliveira
c53b72fd7b
Add CHANGELOG for 3013
2018-01-20 12:02:54 -02:00
Bruno Oliveira
6bb739516f
Update logging docs with the new changes in 3.4
...
Ref: #3013
2018-01-20 12:02:54 -02:00
Bruno Oliveira
8d735f3e1d
Live log option now writes to the terminal reporter
...
Ref: #3013
2018-01-20 12:01:42 -02:00
Bruno Oliveira
aca1b06747
Undo log level set by caplog.set_level at the end of the test
...
Otherwise this leaks the log level information to other tests
Ref: #3013
2018-01-20 12:01:42 -02:00
Bruno Oliveira
8dcd2718aa
No longer change the level of any logger unless requested explicitly
...
Ref: #3013
2018-01-20 12:01:42 -02:00
Bruno Oliveira
5ad1313b8a
log_cli must now be enabled explicitly
...
Ref: #3013
2018-01-20 12:00:46 -02:00
Bruno Oliveira
3b3d237f07
Merge pull request #3117 from boxed/access_logs_in_teardown
...
Access captures logs in teardown
2018-01-20 11:21:17 -02:00
Bruno Oliveira
c4c968fe69
Reword CHANGELOG after introduction of caplog.get_handler()
2018-01-20 11:14:09 -02:00
Cyrus Maden
0b6df94b12
Delete .DS_Store
2018-01-19 18:45:02 -08:00
Cyrus Maden
c3d420bf75
Delete .DS_Store
2018-01-19 18:44:46 -08:00
Cyrus Maden
ebb4c47155
Delete .DS_Store
2018-01-19 18:44:33 -08:00
Anders Hovmöller
7ea5a22657
Access captures logs in teardown
2018-01-19 12:42:35 +01:00
Cyrus Maden
cd76366d87
Rename pr.doc to 3131.doc
2018-01-18 15:59:37 -08:00
Cyrus Maden
931e8830ba
Update changelog
...
Not issue ID. Will update with pr ID after submitting pr
2018-01-18 15:54:31 -08:00
Bruno Oliveira
621374679b
Merge pull request #3129 from kimberlythegeek/typo_in_logging_doc
...
Typo in logging doc
2018-01-18 16:40:09 -02:00
Bruno Oliveira
8be1136d03
Small changelog formatting
2018-01-18 16:40:00 -02:00
Kimberly
e0b63e34fa
fixed typo in logging doc and added fix to changelog
2018-01-18 10:40:18 -07:00
feuillemorte
a7c39c894b
#1642 fix flake8
2018-01-17 23:48:04 +03:00
feuillemorte
4a18d76160
#1642 remove print
2018-01-17 23:14:40 +03:00
feuillemorte
86f01967e1
#1642 Added changelog entry
2018-01-17 23:05:22 +03:00
feuillemorte
d784155fd2
#1642 Add rootdir option
2018-01-17 23:02:31 +03:00
Florian Bruhin
1fd67c9000
Merge pull request #3121 from feuillemorte/2953-keyword-expressions-error
...
#2953 show a simple and easy error when keyword expressions trigger a syntax error
2018-01-17 19:00:22 +01:00
Bruno Oliveira
e3406e0818
Show usage errors in red
2018-01-16 19:35:32 -02:00
feuillemorte
dc79116de3
Merge branch '2953-keyword-expressions-error' of github.com:feuillemorte/pytest into 2953-keyword-expressions-error
2018-01-16 23:36:40 +03:00
feuillemorte
8433e2ba04
#2953 fix comments: fix exception type
2018-01-16 23:35:57 +03:00
Bruno Oliveira
86e1b44230
Improve changelog formatting
2018-01-16 18:10:15 -02:00
feuillemorte
5d3f7d7142
Merge branch '2953-keyword-expressions-error' of github.com:feuillemorte/pytest into 2953-keyword-expressions-error
2018-01-16 22:56:23 +03:00
feuillemorte
648d5d0c6b
#2953 fix comments: use keyword module
2018-01-16 22:55:24 +03:00
feuillemorte
dff597dcd0
Add changelog entry
2018-01-16 21:34:13 +03:00
feuillemorte
076fb56f85
show a simple and easy error when keyword expressions trigger a syntax error
2018-01-16 21:30:44 +03:00
Bruno Oliveira
150537d5e0
Merge pull request #3119 from PoppyBagel/fix-formatting
...
[doc] Fix wrong formatting in parametrize.rst
2018-01-16 08:33:48 -02:00
Kate
d8c23fd39b
Fix wrong formatting
2018-01-16 12:36:28 +03:00
Cyrus Maden
b748576358
Add name
2018-01-15 13:36:44 -08:00
Cyrus Maden
f555a3a76c
Update getting started guide
...
Proofread; added intro paragraph under first header to orient new users; fixed grammar errors (switched to active voice, actionable directions, etc) to improve readability
2018-01-15 13:27:10 -08:00
Cyrus Maden
1f4831a23f
Update getting-started.rst
2018-01-15 12:28:21 -08:00
Brian Maissy
0a0d97aeb5
added changelog news fragment
2018-01-14 23:14:59 +02:00
Brian Maissy
4a3863c2e2
use flush in order to avoid hanging on mac
2018-01-14 23:00:23 +02:00
Aaron
d314691fd3
more descriptive changelog message
2018-01-12 10:29:18 -08:00
Ronny Pfannschmidt
01e37fe892
Merge pull request #3110 from nicoddemus/progress-teardown-3088
...
Fix progress report when tests fail during teardown
2018-01-12 11:09:01 +01:00
Bruno Oliveira
abbdb60051
Move logic determining if progress should be displayed to a function
2018-01-12 07:04:43 -02:00
Bruno Oliveira
5939b336cd
Fix progress report when tests fail during teardown
...
Fix #3088
2018-01-11 20:42:05 -02:00
Aaron
3d289b803d
update AUTHORS and changelog
2018-01-11 12:25:41 -08:00
Aaron
4a704bbb55
fix reorder_items_atscope ordering
2018-01-11 11:30:52 -08:00
Aaron
ee6c9f50a2
optimize fixtures.reorder_items
2018-01-11 11:30:52 -08:00
Bruno Oliveira
3181718fe0
Merge pull request #3087 from nicoddemus/deprecation-roadmap
...
Update deprecation/removal docs to point to labels/milestones instead
2018-01-11 11:14:47 -02:00
Bruno Oliveira
2674f352e8
Merge pull request #3091 from nicoddemus/conftest-hooks
...
Document bootstrap and initialization hooks
2018-01-11 11:14:20 -02:00
Bruno Oliveira
6fb46a0e79
Merge pull request #3104 from pbrod/patch-1
...
Update Freezing pytest description in simple.rst
2018-01-10 14:19:25 -02:00
Per A. Brodtkorb
820ea6d68f
Update Freezing pytest description in simple.rst
...
I have trouble using third party plugins in my frozen program and discovered
that other people have experienced it as well:
https://mail.python.org/pipermail//pytest-dev/2015-June/003015.html
The problem is that the mechanism for plugin discovery used by pytest
(setupttools entry points) doesn't work with frozen executables so pytest
can't find any plugins. The solution seems to be to import the third party
plugins explicitly as shown here:
https://mail.python.org/pipermail//pytest-dev/2015-June/003018.html
This is not mentioned anywhere in the documentaion.
2018-01-10 16:44:26 +01:00
Ronny Pfannschmidt
b0032ba2b3
Merge pull request #3102 from nicoddemus/logfinish-hook-3101
...
Add new pytest_runtest_logfinish hook
2018-01-10 07:57:35 +01:00
Ronny Pfannschmidt
cf9b31bd5a
Merge pull request #3068 from asottile/pystd
...
Replace py.std with stdlib imports
2018-01-10 07:52:55 +01:00
Bruno Oliveira
b68b80aec9
Add new pytest_runtest_logfinish hook
...
Fix #3101
2018-01-09 22:17:39 -02:00
Anthony Sottile
bd1d17e8de
Replace py.std with stdlib imports
2018-01-09 12:44:10 -08:00
Bruno Oliveira
93306f6a5e
Merge remote-tracking branch 'upstream/master' into features
2018-01-09 18:41:00 -02:00
Bruno Oliveira
962aede290
Merge pull request #3096 from nicoddemus/import-warnings
...
Ignore ImportWarnings regarding package resolution
2018-01-09 18:40:33 -02:00
Ronny Pfannschmidt
a8d3d329ec
Merge pull request #3098 from uranusjr/pep426-setuptools-36.2.1
...
Add support for new environment marker usages
2018-01-09 18:21:06 +01:00
Tzu-ping Chung
b256cd2a6a
Add support for new environment marker usages
2018-01-09 21:34:11 +08:00
Bruno Oliveira
b6b36bc167
Handle pluggy package or module for traceback filtering
...
Since 0.6.1 pluggy has been turned into a package
2018-01-08 21:29:15 -02:00
Bruno Oliveira
3dd24f8d21
Ignore ImportWarnings regarding package resolution
...
The problem is described/discussed in #3061
Ideally this should be a temporary solution until we find a proper one
which gets rid of the warning
2018-01-08 21:11:08 -02:00
Bruno Oliveira
794fb193ba
Merge pull request #3093 from cryvate/fix-issue-2985-blurb
...
Fix issue 2985 blurb in changelog
2018-01-07 01:18:18 -02:00
Henk-Jaap Wagenaar
d7e1f037d9
Fix issue 2985 blurb in changelog
2018-01-06 22:15:06 +00:00
Bruno Oliveira
29ff9301d8
Merge pull request #3092 from jdufresne/readthedocs
...
Prefer https://*.readthedocs.io over http://*.rtfd.org
2018-01-06 15:53:10 -02:00
Bruno Oliveira
f3c666db3c
Small formatting update in CHANGELOG
2018-01-06 14:08:15 -02:00
Jon Dufresne
b93aa5e35f
Prefer https://*.readthedocs.io over http://*.rtfd.org
...
- Requests URL using https instead of http
- Avoids unnecessary redirect of *.rtfd.org -> *.readthedocs.io
*.rtfd.org exists as a means for pasting short URLs, which doesn't much
apply for links in documentation.
2018-01-06 08:05:42 -08:00
Bruno Oliveira
bc66f7e43f
Merge pull request #3075 from elliterate/bugs/fix-skipping-plugin-reporting
...
Assume not skipped by mark if attribute missing
2018-01-06 13:56:07 -02:00
Bruno Oliveira
cb6b851780
Update deprecation/removal docs to point to labels/milestones instead
...
Using milestones and proper issues are a much saner way to handle these topics
than keeping them in sync in a separate document
2018-01-06 13:48:39 -02:00
Bruno Oliveira
afb8a4e35d
Document bootstrap and initialization hooks
...
Fix #2616
2018-01-06 13:31:38 -02:00
Bruno Oliveira
06a182386b
Merge pull request #3073 from nicoddemus/pytest_runtestloop-docs
...
Add pytest_runtestloop to the docs
2018-01-05 20:35:51 -02:00
Bruno Oliveira
fac07c1b3f
Merge pull request #3076 from pafonta/patch-1
...
[doc] Reword strange sentence on doctest flags
2018-01-05 09:49:54 -02:00
Bruno Oliveira
e8c0ca4f08
Merge pull request #3064 from nicoddemus/release-3.3.2
...
Preparing release version 3.3.2
2018-01-04 20:42:51 -02:00
Pierre-Alexandre Fonta
ac6f257efc
Create news fragment for the pull request
2018-01-04 14:58:30 +01:00
Pierre-Alexandre Fonta
554cb8d09c
Reword strange sentence on doctest flags
2018-01-04 14:47:05 +01:00
Ian Lesperance
25b504b4f0
Add self to authors list
2018-01-03 18:54:49 -05:00
Ian Lesperance
0a6e086f9d
Add changelog entry
2018-01-03 18:53:32 -05:00
Ian Lesperance
f24c470403
Assume not skipped by mark if attribute missing
...
Fixes #3074 .
2018-01-03 18:47:18 -05:00
Bruno Oliveira
52a7ccef57
Add pytest_runtestloop to the docs
2018-01-03 16:58:57 -02:00
Bruno Oliveira
bd2d0d2c3c
Preparing release version 3.3.2
2017-12-25 20:38:27 +00:00
Bruno Oliveira
08997279f4
Merge pull request #3059 from asottile/yesqa
...
Remove unnecessary `# noqa` comments.
2017-12-22 17:03:02 -02:00
Anthony Sottile
205e29d843
Remove unnecessary # noqa comments.
...
Commit automated with https://github.com/asottile/yesqa
2017-12-22 08:29:48 -08:00
Ronny Pfannschmidt
672c901c70
Merge pull request #2784 from RonnyPfannschmidt/fix-fdleaks
...
pytester: ignore files used to obtain current user metadata
2017-12-19 17:08:53 +01:00
Bruno Oliveira
c70efaa0fb
Merge pull request #3047 from RonnyPfannschmidt/mark-newapi
...
move node base classes from main to nodes
2017-12-19 07:59:25 -02:00
Ronny Pfannschmidt
d370e7788d
Merge pull request #2068 from flub/commitaccess
...
[proposal] Add section about how you become a committer
2017-12-18 18:20:49 +01:00
Ronny Pfannschmidt
0d83dd1b31
Merge pull request #3016 from jurko-gospodnetic/clean-up-state-after-in-process-pytest-runs
...
Clean up state after in process pytest runs
2017-12-18 17:56:24 +01:00
Ronny Pfannschmidt
ed293ec3e9
pytester: no ignore files used to obtain current user metadata in the fd leak detector
2017-12-18 17:52:55 +01:00
Ronny Pfannschmidt
2f8427bb4e
Merge pull request #3043 from awbdallas/parameterize_documentation_fix
...
Parameterize documentation fix
2017-12-18 17:48:41 +01:00
Ronny Pfannschmidt
94608c6110
port _Compatproperty to attrs
2017-12-18 11:08:20 +01:00
Ronny Pfannschmidt
afc607cfd8
move node base classes from main to nodes
2017-12-18 11:08:20 +01:00
Florian Bruhin
30729b7c3c
Merge pull request #3045 from thisch/revert_accidental_push
...
Revert accidental push
2017-12-17 22:06:38 +01:00
Thomas Hisch
dfc5399cd7
Revert "WIP #3013 "
...
This reverts commit 28a93b9eeb .
2017-12-17 21:50:17 +01:00
Thomas Hisch
76489d30f7
Revert "WIP"
...
This reverts commit d6f75d2836 .
2017-12-17 21:49:57 +01:00
Thomas Hisch
d6f75d2836
WIP
2017-12-17 20:11:24 +01:00
Jurko Gospodnetić
d85a3ca19a
add changelog entry
2017-12-17 12:47:50 +01:00
Jurko Gospodnetić
f3c9c6e8a8
fix restoring Python state after in-process pytest runs
...
Now each in-process pytest run saves a snapshot of important global Python
state and restores it after the test completes, including the list of loaded
modules & the Python path settings.
Previously only the loaded package data was getting restored, but that was
also reverting any loaded package changes done in the test triggering the
pytest runs, and not only those done by the pytest runs themselves.
Updated acceptance tests broken by this change, which were only passing before
by accident as they were making multiple pytest runs with later ones depending
on sys.path changes left behind by the initial one.
2017-12-17 12:47:50 +01:00
Jurko Gospodnetić
67bd60d5c6
clean up Testdir taking snapshots & restoring global Python state
...
Now extracted to new CwdSnapshot, SysModulesSnapshot & SysPathsSnapshot
classes, each saving the state they are interested in on instantiation
and restoring it in its `restore()` method.
2017-12-17 12:47:50 +01:00
Thomas Hisch
28a93b9eeb
WIP #3013
2017-12-17 06:54:57 +01:00
Austin
70461d1ead
Update parametrize.rst
2017-12-16 09:31:48 -06:00
Austin
73eccb4c36
Adding news fragment
2017-12-16 09:21:27 -06:00
Austin
d7a76a4d07
Updated for more clarity
...
- Changed original wording for parameterize. Should help be a little more clear
2017-12-16 09:04:18 -06:00
Bruno Oliveira
924b5e2e3d
Merge pull request #3031 from nicoddemus/symlink-privileges
...
Check if symlink does have privileges on Windows for test_cmdline_python_package_symlink
2017-12-16 12:36:11 -02:00
Bruno Oliveira
d87279115d
Merge pull request #3041 from segevfiner/capture-no-disable-progress
...
Use classic console output when -s is used
2017-12-16 12:34:34 -02:00
Bruno Oliveira
0a2735a275
Reword changelog entry
2017-12-16 12:33:34 -02:00
Austin
c90e76c371
Clarifiyng documentation for parameterize
...
- Added snippet dealing with parameterize run order of tests
2017-12-16 08:25:02 -06:00
Segev Finer
370daf0441
Use classic console output when -s is used
...
Fixes #3038
2017-12-16 15:00:23 +02:00
Bruno Oliveira
586ecea6f2
Check if symlink does not privileges on Windows for test_cmdline_python_package_symlink
...
os.symlink might fail on Windows because users require a special policy
to create symlinks (argh).
This is not a problem on AppVeyor because it is logged in as an admin,
but would be surprising for Windows users running pytest's test
suite on their computer.
2017-12-14 19:23:15 -02:00
Bruno Oliveira
db4df5833a
Merge pull request #3030 from nicoddemus/leak
...
Fix memory leak caused by fixture values never been garbage collected
2017-12-14 19:20:34 -02:00
Bruno Oliveira
b17c6e5f89
Merge pull request #3028 from thisch/removelogger
...
Remove logger parameter from catching_logs
2017-12-13 20:56:48 -02:00
Bruno Oliveira
c3f63ac143
Fix memory leak caused by fixture values never been garbage collected
...
The leak was caused by the (unused) `FixtureRequest._fixture_values`
cache.
This was introduced because the `partial` object (created to call
FixtureDef.finish() bound with the Request) is kept alive
through the entire session when a function-scoped fixture depends
on a session-scoped (or higher) fixture because of the nested
`addfinalizer` calls.
FixtureDef.finish() started receiving a request object in order to
obtain the proper hook proxy object (#2127 ), but this does not seem
useful at all in practice because `pytest_fixture_post_finalizer`
will be called with the `request` object of the moment the fixture value
was *created*, not the request object active when the fixture value
is being destroyed. We should probably deprecate/remove the request
parameter from `pytest_fixture_post_finalizer`.
Fix #2981
2017-12-13 19:49:06 -02:00
Thomas Hisch
3862b0b28d
Remove logger parameter from catching_logs
...
The logger parameter of catching_logs is not used anywhere. The main
motivation for removing the logger parameter is that it removes the
logger = logger or logging.getLogger(logger)
line. IMO there are too many occurences of the string 'logg' ;)
2017-12-13 21:13:59 +01:00
Ronny Pfannschmidt
476d4df1b7
Merge pull request #3010 from cryvate/fix-issue-2985
...
Improve handling of pyargs
2017-12-13 13:56:42 +01:00
Ronny Pfannschmidt
52449903c3
Merge pull request #3023 from nicoddemus/preparse-deprecated
...
Add param annotations and types to hookspec
2017-12-13 13:51:20 +01:00
Ronny Pfannschmidt
506c9c91c0
Merge pull request #3025 from anntzer/dont-rewrite-plugin
...
Respect PYTEST_DONT_REWRITE for plugins too.
closes #2995
2017-12-13 12:34:51 +01:00
Bruno Oliveira
38f34e2fa1
Merge pull request #3012 from thisch/merge_contextmanagers
...
Integrate logging_using_handler into catching_logs
2017-12-13 06:59:48 -02:00
Bruno Oliveira
ba41015ef6
Merge pull request #3021 from jurko-gospodnetic/cleanup
...
Code cleanup
2017-12-13 06:58:18 -02:00
Bruno Oliveira
ebfc1c49d1
Fix changelog formatting
2017-12-13 06:58:07 -02:00
Antony Lee
45e7734b1a
Change set ops to use methods instead of operators.
2017-12-13 00:54:57 -08:00
Bruno Oliveira
8ce6e39b1c
Small formatting to CHANGELOG
2017-12-13 06:52:37 -02:00
Antony Lee
c8e7d1ae34
Respect PYTEST_DONT_REWRITE for plugins too.
2017-12-12 17:43:17 -08:00
Bruno Oliveira
7b5d4d01ed
Add param annotations and types to hookspec
...
Also mention which hook to use instead of the deprecated
pytest_cmdline_preparse
Fix #3022
2017-12-12 18:01:31 -02:00
Jurko Gospodnetić
a4f4579f19
add changelog entry
2017-12-12 13:41:31 +01:00
Jurko Gospodnetić
e4da9bacdf
fix actial --> actual typo
2017-12-12 12:55:32 +01:00
Henk-Jaap Wagenaar
1e295535c3
Move _patched_find_module to module namespace.
2017-12-12 09:53:06 +00:00
Henk-Jaap Wagenaar
3ca1e4b7f0
Make patch for issue in pkgutil.ImpImporter local by using contextmanager.
2017-12-12 08:43:01 +00:00
Henk-Jaap Wagenaar
dc19624248
Improve testing comments and code of issue 2985 (symlink in pyargs).
2017-12-12 08:26:40 +00:00
Bruno Oliveira
f8f1a52ea0
Merge remote-tracking branch 'upstream/master' into features
2017-12-11 22:18:50 -02:00
Bruno Oliveira
5c6d7739bc
Merge pull request #3015 from jurko-gospodnetic/code-cleanup
...
Code cleanup
2017-12-11 22:15:50 -02:00
Bruno Oliveira
771b5c8852
Merge pull request #3019 from srinivasreddy/rm_ast
...
remove '_ast' module; and redirect '_ast' references to 'ast'
2017-12-11 22:12:40 -02:00
Bruno Oliveira
fc5ec5807e
Add changelog for 3018
2017-12-11 17:40:35 -02:00
Srinivas Reddy Thatiparthy
fc544dc660
remove redundant checking because
...
* isinstance([], Sequence) is True
* isinstance((), Sequence) is True
2017-12-12 00:10:59 +05:30
Srinivas Reddy Thatiparthy
7792587b3f
remove unnecessary import
2017-12-12 00:03:38 +05:30
Srinivas Reddy Thatiparthy
c2cd239d35
remove _ast reference from test cases as well
2017-12-11 23:24:47 +05:30
Srinivas Reddy Thatiparthy
cb0ba18f53
remove '_ast' module; and redirect '_ast' references to 'ast'
2017-12-11 23:14:17 +05:30
Jurko Gospodnetić
3b85e0c3a9
simplify test_conftest_found_with_double_dash() test code
2017-12-11 15:10:04 +01:00
Jurko Gospodnetić
73bc6bacfa
add changelog entry
2017-12-09 13:34:58 +01:00
Jurko Gospodnetić
8e8a953ac6
fix test name typo
2017-12-09 13:34:58 +01:00
Jurko Gospodnetić
852b96714e
use spaces consistently instead of some of them being
2017-12-09 13:34:57 +01:00
Jurko Gospodnetić
dd64f1a4a9
fix tox.ini comment typos
2017-12-09 13:34:57 +01:00
Jurko Gospodnetić
41a6ec6f31
touch up test_cmdline_python_namespace_package() test code
2017-12-09 13:34:56 +01:00
Jurko Gospodnetić
7feab7391d
simplify test_pdb_collection_failure_is_shown test data setup code
2017-12-09 13:34:56 +01:00
Jurko Gospodnetić
f0bfe9de3d
shorten some test code
2017-12-09 13:34:56 +01:00
Jurko Gospodnetić
596937e610
remove extra whitespace
2017-12-09 13:34:55 +01:00
Jurko Gospodnetić
57fcd3f57e
remove corpse code comments
2017-12-09 13:34:55 +01:00
Jurko Gospodnetić
65f5383106
fix comment & docstring typos, line wrapping & wording
2017-12-09 13:34:54 +01:00
Ronny Pfannschmidt
964c29cb93
Merge pull request #3014 from nicoddemus/cap-named-tuple
...
Change capture docs to use namedtuple
2017-12-09 09:38:39 +01:00
Bruno Oliveira
38fb6aae78
Change capture docs to use namedtuple
2017-12-08 18:34:29 -02:00
Bruno Oliveira
1c5b887dfd
Fix spelling of pytest in CHANGELOG
2017-12-08 09:04:42 -02:00
Thomas Hisch
ba209b5230
Integrate logging_using_handler into catching_logs
...
logging_using_handler is only used in catching_logs. Therefore it makes
sense to remove one of the many context managers from the logging
plugin.
2017-12-07 16:34:53 +01:00
Henk-Jaap Wagenaar
b62fd79c0c
Fix issue 2985.
2017-12-07 15:12:44 +00:00
Bruno Oliveira
655146e522
Merge remote-tracking branch 'upstream/master' into features
2017-12-05 22:30:35 -02:00
Bruno Oliveira
88f2cc9b64
Small formatting fixes in CHANGELOG
2017-12-05 22:28:56 -02:00
Bruno Oliveira
ed2bb9d723
Merge pull request #2997 from nicoddemus/release-3.3.1
...
Preparing release version 3.3.1
2017-12-05 22:21:41 -02:00
Bruno Oliveira
2a111ff700
Preparing release version 3.3.1
2017-12-05 20:41:57 +00:00
Bruno Oliveira
5c6758fde4
Merge pull request #3006 from The-Compiler/template-fix
...
Fix example in PR template
2017-12-05 18:35:42 -02:00
Bruno Oliveira
9bd8420a6b
Merge pull request #3005 from The-Compiler/blacklist-catchlog
...
Also blacklist pytest-capturelog plugin
2017-12-05 18:35:09 -02:00
Florian Bruhin
cbdab02d05
Fix example in PR template
2017-12-05 20:05:35 +01:00
Florian Bruhin
ce30896cd2
Also blacklist pytest-capturelog plugin
...
This is the older plugin before pytest-catchlog was around. Apparently there are
people still using it.
Fixes #3004
2017-12-05 20:02:56 +01:00
Ronny Pfannschmidt
2e8b0a83fe
Merge pull request #2989 from nicoddemus/bring-tr-writer-back-2984
...
Bring back TerminalReporter.writer as an alias to TerminalReporter._tw
2017-12-01 17:42:31 +01:00
Bruno Oliveira
369c711f14
Merge pull request #2971 from blueyed/fix-ZeroDivisionError
...
Fix ZeroDivisionError with 0 collected tests
2017-11-30 21:12:46 -02:00
Bruno Oliveira
cf0cac3b73
Bring back TerminalReporter.writer as an alias to TerminalReporter._tw
...
Fix #2984
2017-11-30 19:56:47 -02:00
Bruno Oliveira
a9dd37f429
Merge pull request #2980 from nicoddemus/immutable-fix-parameters
...
Add CHANGELOG entry about pytest.fixture "params" being now immutable
2017-11-30 19:56:03 -02:00
Bruno Oliveira
294729962d
Merge pull request #2976 from st--/master
...
Extend _pytest.python._idval to return __name__ of functions as well
2017-11-30 18:01:21 -02:00
Ronny Pfannschmidt
4de433e280
Merge pull request #2983 from nicoddemus/improve-assert-2979
...
Improve getscopeitem assertion message
2017-11-30 16:58:29 +01:00
ST John
652936f47f
make linter happier
2017-11-30 10:29:05 +00:00
ST John
1fe2e2cb03
Merge branch 'master' of https://github.com/st--/pytest
2017-11-30 10:19:38 +00:00
ST John
e66473853c
add test
2017-11-30 10:19:29 +00:00
Bruno Oliveira
70f1e3b4b0
Improve getscopeitem assertion message
...
Fix #2979
2017-11-30 07:53:43 -02:00
Bruno Oliveira
fdd4abb88a
Small rewording of the CHANGELOG
2017-11-29 21:11:34 -02:00
Bruno Oliveira
fdfc1946da
Add CHANGELOG entry about pytest.fixture "params" being now immutable
...
Fix #2959
2017-11-29 18:56:57 -02:00
ST John
5085aa2bce
add changelog file
2017-11-29 16:30:34 +00:00
ST John
912330a7e2
Extend _pytest.python._idval to return __name__ of functions as well, not just for classes
2017-11-29 16:17:49 +00:00
Florian Bruhin
88ed1ab648
Merge pull request #2964 from rpuntaie/master
...
fix issue #2920
2017-11-29 10:32:28 +01:00
Florian Bruhin
191e8c6d9b
Merge pull request #2969 from nicoddemus/null-bytes-2957
...
Always escape null bytes when setting PYTEST_CURRENT_TEST
2017-11-29 06:57:48 +01:00
Bruno Oliveira
6bbd741039
Add test for #2971
2017-11-28 22:42:52 -02:00
Daniel Hahler
0f5fb7ed05
Fix ZeroDivisionError with 0 collected tests
...
This can easily happen with pytest-testmon.
2017-11-29 00:54:14 +01:00
Bruno Oliveira
5f1a7330b2
Small fixes in changelog items
2017-11-28 21:36:17 -02:00
Bruno Oliveira
2a75ae46c3
Improve test that blocks setuptools plugins from being loaded
...
Make it a parametrized test to ensure all the mocked mechanisms in
the test actually work as expected when we *do not* use "-p no:"
2017-11-28 21:29:58 -02:00
Bruno Oliveira
89cf943e04
Always escape null bytes when setting PYTEST_CURRENT_TEST
...
Fix #2957
2017-11-28 19:45:13 -02:00
Roland Puntaier
833f33fa0c
removed comments
2017-11-28 17:38:49 +01:00
Roland Puntaier
3dbac17d75
Merge branch 'master' of https://github.com/rpuntaie/pytest
2017-11-28 17:30:54 +01:00
Roland Puntaier
6843d45c51
added test for #2920 fix
2017-11-28 17:29:52 +01:00
Bruno Oliveira
4a840a7c09
Fix formatting in CHANGELOG
2017-11-28 13:59:27 -02:00
Roland Puntaier
9b7e4ab0c6
prepare pull request for #2920 fix
2017-11-28 16:56:59 +01:00
Roland Puntaier
4ea7bbc197
fix issue #2920
2017-11-28 16:47:12 +01:00
Bruno Oliveira
4d2f05e4b9
Merge pull request #2962 from pytest-dev/fix-nbsp-in-changelog
...
replace non-breaking space with space
2017-11-28 09:51:26 -02:00
Florian Bruhin
454b60b6c5
Merge pull request #2963 from redtoad/patch-1
...
Fix broken link to project
2017-11-28 12:51:15 +01:00
Sebastian Rahlf
f6be23b68b
Add changelog entry.
2017-11-28 12:31:34 +01:00
Sebastian Rahlf
644fdc5237
Fix broken link to project
...
The plugin has since moved to pytest-dev
2017-11-28 12:22:47 +01:00
Tom Viner
4b5f0d5ffa
replace non-breaking space with space
2017-11-28 11:12:40 +00:00
Ronny Pfannschmidt
9f7ba00611
Merge pull request #2958 from nicoddemus/issue-2956
...
Only escape str-like arguments passed to warnings
2017-11-28 07:44:28 +01:00
Bruno Oliveira
796db80ca4
Only escape str-like arguments passed to warnings
...
Fix #2956
2017-11-27 23:17:15 -02:00
Bruno Oliveira
d95c8a2204
Fix link to #2636 in CHANGELOG
2017-11-27 19:51:41 -02:00
Bruno Oliveira
4678cbeb91
Merge remote-tracking branch 'upstream/features'
2017-11-27 19:37:58 -02:00
Bruno Oliveira
67ad0fa364
Merge pull request #2945 from nicoddemus/release-3.3.0
...
Release 3.3.0
2017-11-27 19:37:19 -02:00
Bruno Oliveira
6cdd851227
CHANGELOG and docs changes requested during review
2017-11-27 10:19:34 -02:00
Bruno Oliveira
c58715371c
Merge pull request #2954 from blueyed/rewritten
...
Fix spelling: s/re-writ/rewrit/g
2017-11-26 18:12:30 -02:00
Daniel Hahler
d5f038e29a
Fix spelling: s/re-writ/rewrit/g
...
This also fixes "can not" to "cannot" in the "Module already imported so
cannot be rewritten" assertion error.
2017-11-26 20:46:06 +01:00
Bruno Oliveira
6eeacaba3e
Fix typos in CHANGELOG
2017-11-26 09:00:08 -02:00
Bruno Oliveira
6b90ad4d4b
Merge pull request #2949 from eprikazc/master
...
Update github "bugs" link
2017-11-25 16:18:29 -02:00
Eugene Prikazchikov
e273f5399d
Update github "bugs" link
...
Apparently, some time ago label was renamed from bug to "type:bug"
2017-11-25 17:44:58 +03:00
Bruno Oliveira
0de1a65644
Update pluggy pin to pluggy>=0.5,<0.7 after pluggy-0.6 release
2017-11-24 14:42:25 -02:00
Bruno Oliveira
95de11a44e
Block pytest-catchlog and issue a warning
...
Trying to install pytest-3.3 and pytest-catchlog will result in an
option conflicts because both declare the same options.
2017-11-23 19:53:12 -02:00
Bruno Oliveira
05cfdcc8cb
Revert making TerminalWriter public in TerminalReporter plugin
...
We eventually want to replace py.io.TerminalWriter (exposed as
"_tw" in TerminalReporter) by something else, so deprecating access
to "_tw" and making it public as "writer" is contrary to that.
2017-11-23 19:53:12 -02:00
Bruno Oliveira
0ddd3e2839
Fix linting in CHANGELOG
2017-11-23 19:02:13 -02:00
Bruno Oliveira
aa9a02ec44
Preparing release version 3.3.0
2017-11-23 20:25:36 +00:00
Bruno Oliveira
e97c774f8e
Remove vendoring import from tasks/__init__
2017-11-23 20:23:50 +00:00
Bruno Oliveira
f50ace7c0a
Merge remote-tracking branch 'upstream/master' into release-3.3.0
2017-11-23 20:20:40 +00:00
Bruno Oliveira
49c0c599b0
Merge pull request #2944 from nicoddemus/regendoc-norm
...
Remove gendoc normalization for '=' and '_' headers
2017-11-23 16:31:09 -02: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
Ronny Pfannschmidt
b533c2600a
Merge pull request #2858 from nicoddemus/console-progress-2657
...
Console progress output
2017-11-23 14:46:49 +01:00
Bruno Oliveira
dc574c60ef
Use regex match-count syntax to improve test readability
2017-11-22 17:16:25 -02:00
Bruno Oliveira
1d26f3730f
Fix docstrings in pytester
2017-11-22 17:15:59 -02:00
Bruno Oliveira
27935ebec9
Merge pull request #2943 from Perlence/fix-marks-without-description
...
Handle marks without description
2017-11-22 15:36:29 -02:00
Bruno Oliveira
378eb5d67b
Minor formatting change in CHANGELOG
2017-11-22 11:24:48 -02:00
Sviatoslav Abakumov
5e71ffab87
Handle marks without description
2017-11-22 15:47:15 +03:00
Florian Bruhin
8df7ed12c1
Merge pull request #2940 from nicoddemus/rewrite-bug-2939
...
Fix assertion rewrite to match module names correctly
2017-11-22 06:57:55 +01:00
Bruno Oliveira
f05333ab75
Fix rewrite to not write past the edge of the screen
2017-11-22 00:00:02 -02:00
Bruno Oliveira
c8d52b633b
Fix assertion rewrite to match module names correctly
...
Fix #2939
2017-11-21 23:06:47 -02:00
Bruno Oliveira
2455f8670e
Add changelog
2017-11-21 21:01:51 -02:00
Bruno Oliveira
3a5dbabf60
Add tests for progress output and docs for `console_output_style`
...
Fix #2657
2017-11-21 21:01:51 -02:00
Bruno Oliveira
3441084bd2
Add progress output for verbose mode with xdist
2017-11-21 21:01:51 -02:00
Bruno Oliveira
8b92527d7d
Add re_match_lines and re_match_lines_random to pytester fixture
2017-11-21 21:01:51 -02:00
Bruno Oliveira
dab889304e
Implement progress percentage reporting while running tests
...
Fix #2657
2017-11-21 21:01:41 -02:00
Bruno Oliveira
7a7cb8c8c5
Require py>=1.5.0
2017-11-21 21:01:41 -02:00
Bruno Oliveira
77bd0aa02f
Merge pull request #2931 from nicoddemus/deprecation-roadmap-docs
...
Add Deprecation Roadmap to backward compatibility document
2017-11-18 12:30:33 -02:00
Bruno Oliveira
b0f558da44
Add Future/Past Releases section
2017-11-18 11:57:00 -02:00
Ronny Pfannschmidt
ca1f4bc537
Merge pull request #2935 from asottile/capsysbinary
...
Add capsysbinary fixture
2017-11-17 21:30:14 +01:00
Anthony Sottile
219b758949
Add capsysbinary fixture
...
`capsysbinary` works like `capsys` but produces bytes for `readouterr()`.
2017-11-17 09:02:46 -08:00
Bruno Oliveira
6161bcff6e
Merge pull request #2925 from asottile/capfdbinary
...
Add capfdbinary fixture
2017-11-17 08:00:10 -02:00
Ronny Pfannschmidt
99a4a93dbc
Merge pull request #2932 from nicoddemus/deprecate-add-call
...
Deprecate metafunc.addcall
2017-11-16 07:15:25 +01:00
Bruno Oliveira
99ba3c9700
Add CHANGELOG entry for #2876
2017-11-15 22:02:47 -02:00
Bruno Oliveira
c19708b193
Merge pull request #2930 from nicoddemus/pin-pluggy-0.5
...
Update pluggy pin to 0.5.*
2017-11-15 21:59:53 -02:00
Bruno Oliveira
1f08d990d5
Deprecate metafunc.addcall
...
Fix #2876
2017-11-15 15:16:00 -02:00
Bruno Oliveira
e2c59d3282
Change pluggy._CallOutcome to pluggy._Result after update to pluggy-0.5
2017-11-15 14:08:11 -02:00
Bruno Oliveira
f9029f11af
Add Deprecation Roadmap to backward compatibility document
...
We should replace the wiki document to a link to this document now
2017-11-15 13:53:43 -02:00
Bruno Oliveira
c7be83ac47
Update pluggy pin to 0.5.*
2017-11-15 13:00:29 -02:00
Bruno Oliveira
74aaf91653
Merge pull request #2927 from nicoddemus/release-3.2.5
...
Release 3.2.5
2017-11-15 09:22:48 -02:00
Florian Bruhin
1aeb58b531
Merge pull request #2928 from nicoddemus/python-requires
...
Prevent pip from installing pytest in unsupported Python versions
2017-11-15 09:46:04 +01:00
Ronny Pfannschmidt
7b3febd314
Merge pull request #2924 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-11-15 09:36:31 +01:00
Bruno Oliveira
e87ff07370
Prevent pip from installing pytest in unsupported Python versions
...
Fix #2922
2017-11-14 22:27:15 -02:00
Bruno Oliveira
a220a40350
Preparing release version 3.2.5
2017-11-15 00:12:42 +00:00
Bruno Oliveira
dd6c534468
Remove py<1.5 restriction
...
Fix #2926
2017-11-14 22:08:03 -02:00
Bruno Oliveira
4a0aea2deb
Add missing entry to CHANGELOG for 3.2.4
2017-11-14 22:05:48 -02:00
Anthony Sottile
8f90812481
Add capfdbinary fixture
...
`capfdbinary` works like `capfd` but produces bytes for `readouterr()`.
2017-11-14 14:50:00 -08:00
Bruno Oliveira
3b3bf9f53d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-11-14 18:42:29 -02:00
Bruno Oliveira
54cea3d178
Small formatting changes in CHANGELOG
2017-11-14 18:33:46 -02:00
Bruno Oliveira
9628c71210
Merge pull request #2921 from nicoddemus/release-3.2.4
...
Preparing release version 3.2.4
2017-11-14 18:31:03 -02:00
Bruno Oliveira
a0ad9e31da
Preparing release version 3.2.4
2017-11-13 20:01:17 +00:00
Bruno Oliveira
22cff038f8
Merge pull request #2916 from nicoddemus/bin-py-1.5
...
Pin py<1.5 as 1.5 drops py26 and py33 support
2017-11-13 17:56:52 -02:00
Bruno Oliveira
685387a43e
Merge pull request #2127 from malinoff/fix-2124
...
Use session.config.hook instead of ihook. Fixes #2124
2017-11-12 21:57:41 -02:00
Bruno Oliveira
d26c1e3ad9
Pin py<1.5 as 1.5 drops py26 and py33 support
2017-11-12 21:50:11 -02:00
Bruno Oliveira
a6f2d2d2c9
Rename FixtureDef.finalizer to FixtureDef.finalizers
2017-11-12 11:35:46 -02:00
Bruno Oliveira
6d3fe0b826
Explicitly clear finalizers list in finalize to ensure cleanup
2017-11-12 11:28:57 -02:00
Bruno Oliveira
bdad345f99
Fix passing request to finish() in FixtureDef
2017-11-12 11:28:26 -02:00
Bruno Oliveira
063335a715
Add changelog entries for #2124
2017-11-12 11:19:25 -02:00
Bruno Oliveira
f074fd9ac6
Merge remote-tracking branch 'upstream/features' into malinoff/fix-2124
2017-11-12 11:16:08 -02:00
Bruno Oliveira
6550b9911b
pytest_fixture_post_finalizer now receives a request argument
2017-11-12 11:14:55 -02:00
Bruno Oliveira
258031afe5
Merge remote-tracking branch 'upstream/master' into malinoff/fix-2124
2017-11-12 10:34:47 -02:00
Bruno Oliveira
259b86b6ab
Merge pull request #2776 from cryporchild/fix-missing-nodeid-with-pyargs
...
Fix #2775 - running pytest with "--pyargs" will result in Items with …
2017-11-12 10:18:35 -02:00
Ronny Pfannschmidt
f0f2d2b861
Merge branch 'master' into fix-missing-nodeid-with-pyargs
2017-11-11 14:33:55 +01:00
Ronny Pfannschmidt
d1af369800
Merge pull request #2913 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-11-11 10:09:49 +01:00
Ronny Pfannschmidt
b671c5a8bf
Merge pull request #2914 from nicoddemus/addfinalizer-refactor
...
Make SubRequest.addfinalizer an explicit method
2017-11-11 09:26:24 +01:00
Bruno Oliveira
f320686fe0
Make SubRequest.addfinalizer an explicit method
...
This implicit definition really tripped me while debugging #2127 ,
unfortunately hidden as it was in the middle of all the variable
declarations.
I think the explicit definition is much easier for the eyes and IDEs
to find.
2017-11-11 03:07:34 -02:00
Bruno Oliveira
742f9cb825
Merge pull request #2911 from RonnyPfannschmidt/remove-nodeinfo
...
remove unused _pytest.runner.NodeInfo class
2017-11-10 18:57:14 -02:00
Bruno Oliveira
99496d9e5b
Merge pull request #2910 from RonnyPfannschmidt/scopenode-sanitize-specials
...
switch a special case in scope node lookup to a general one
2017-11-10 18:49:35 -02:00
Bruno Oliveira
983a09a2d4
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-11-10 18:33:02 -02:00
Bruno Oliveira
66fbebfc26
Merge pull request #2894 from nicoddemus/fix-linting-errors
...
Fix linting errors
2017-11-10 18:15:53 -02:00
Bruno Oliveira
0108f262b1
Fix typo in CHANGELOG
2017-11-10 18:15:09 -02:00
Ronny Pfannschmidt
76f3be452a
remove unused _pytest.runner.NodeInfo class
2017-11-10 17:48:52 +01:00
Ronny Pfannschmidt
c47dcaa713
switch a special case in scope node lookup to a general one
2017-11-10 17:35:42 +01:00
Ronny Pfannschmidt
b2b1eb262f
Merge pull request #2906 from nicoddemus/larger-parametrize-section
...
Make the "examples" section more prominent in the docs for parametrize
2017-11-10 10:50:57 +01:00
Ronny Pfannschmidt
9fce430c89
Merge pull request #2907 from nicoddemus/lazy-fixture
...
Mention pytest-lazy-fixture plugin in the proposal for parametrize_with_fixtures
2017-11-10 10:48:48 +01:00
Bruno Oliveira
e114feb458
Mention pytest-lazy-fixture plugin in the proposal for parametrize_with_fixtures
2017-11-09 20:14:24 -02:00
Bruno Oliveira
c09f69df2a
Make the "examples" section more prominent in the docs
...
I spent some time today figuring out why PR #2881 was not showing up
on doc/parametrize... then after some digging even on readthedocs
wondering if the last documentation build had failed, I realized the
docs I was looking for was in doc/example/parametrize instead.
The section that mentions this is very easy to miss, this makes it a
full fledged title and easier to find.
2017-11-09 19:25:30 -02:00
Bruno Oliveira
3900879a5c
Mark test_py2_unicode as xfail in PyPy2 on Windows
...
#2905
2017-11-09 19:17:17 -02:00
Florian Bruhin
7b1cc55add
Merge pull request #2903 from pagles/docs-3.6
...
List python 3.6 in the documented supported versions
2017-11-08 22:57:28 +01:00
Yorgos Pagles
d904981bf3
Rename 2903.trivial to 2903.doc
2017-11-08 18:20:50 +02:00
Yorgos Pagles
f13333afce
Create changelog entry
2017-11-08 18:19:59 +02:00
Yorgos Pagles
fad1fbe381
List python 3.6 in the documented supported versions
2017-11-08 18:13:34 +02:00
Bruno Oliveira
c33074c8b9
Merge pull request #2641 from RonnyPfannschmidt/introduce-attrs
...
[RFC] Introduce attrs
2017-11-06 12:56:57 -02:00
Bruno Oliveira
b11640c1eb
Fix linting E722: do not use bare except
2017-11-04 13:59:10 -02:00
Bruno Oliveira
03829fde8a
Fix linting E741: ambiguous variable name
2017-11-04 13:59:10 -02:00
Bruno Oliveira
e351976ef4
Merge remote-tracking branch 'upstream/features' into RonnyPfannschmidt/introduce-attrs
2017-11-04 12:32:27 -02:00
Ronny Pfannschmidt
b18a9deb4c
Merge pull request #2892 from nicoddemus/merge-master-into-features
...
Merge upstream/master into features
2017-11-04 08:15:28 +01:00
Ronny Pfannschmidt
2e2f72156a
Merge pull request #2893 from fmichea/patch-1
...
Clarify language of proposal for fixtures parameters
2017-11-04 08:08:48 +01:00
Franck Michea
22e9b006da
Add fragment per PR's guidelines.
2017-11-03 22:24:05 +01:00
Franck Michea
802585cb66
Clarify language of proposal for parametrized fixtures
...
This change slightly modifies the language of the proposal document around use of fixture as parameters of pytest.mark.parametrize. When looking for documentation around this, I very quickly scrolled through this document and landed on the last paragraph thinking it was documenting a real function. This change attempts to make it less likely for this to happen.
2017-11-03 22:13:47 +01:00
Bruno Oliveira
d7e8eeef56
Merge pull request #2878 from RonnyPfannschmidt/collector-makeitem-deprecate
...
deprecate the public internal PyCollector.makeitem method
2017-11-03 17:13:18 -02:00
Bruno Oliveira
e58e8faf47
Add CHANGELOG entry for attrs module dependency
2017-11-03 17:07:33 -02:00
Bruno Oliveira
7d43225c36
Merge pull request #2877 from RonnyPfannschmidt/extract-extract-parameterset
...
move responsibility for parameterset extraction into parameterset class
2017-11-03 16:52:28 -02:00
Bruno Oliveira
460cae02b0
Small formatting fix in CHANGELOG
2017-11-03 16:51:59 -02:00
Bruno Oliveira
f3a119c06a
Merge upstream/master into features
2017-11-03 16:37:18 -02:00
Ronny Pfannschmidt
d1aa553f73
add mocked integrationtest for the deprecationwarning of makeitem
2017-10-30 19:49:14 +01:00
Ronny Pfannschmidt
cd747c48a4
Merge pull request #2874 from nicoddemus/fix-py27-xdist-envs-2843
...
Change directory for py27 xdist-related envs
2017-10-30 17:09:34 +01:00
Ronny Pfannschmidt
07b2b18a01
introduce attrs as dependency and use it
...
for FixtureFunctionMarker and marks
2017-10-30 17:04:42 +01:00
Bruno Oliveira
766de67392
Fix linting error in deprecated.py
2017-10-30 16:35:34 +01:00
Ronny Pfannschmidt
821f9a94d8
deprecate the public internal PyCollector.makeitem method
2017-10-30 16:35:23 +01:00
Ronny Pfannschmidt
26019b33f8
Merge pull request #2882 from thisch/doctest_lineno
...
Fix context output handling for doctests
2017-10-30 09:57:25 +01:00
Ronny Pfannschmidt
cb30848e5a
Merge pull request #2880 from samueldg/capture-result-namedtuple
...
Capture result namedtuple
2017-10-30 09:47:06 +01:00
Ronny Pfannschmidt
d00e2da6e9
Merge pull request #2881 from dawran6/2658
...
Document pytest.param
2017-10-30 09:36:33 +01:00
Thomas Hisch
2f993af54a
Fix context output handling for doctests
...
Show full context of doctest source in the pytest output, if the lineno of
failed example in the docstring is < 9.
2017-10-29 20:06:10 +00:00
Daw-Ran Liou
af5e9238c8
Document pytest.param
...
Append example for pytest.param in the example/parametrize document.
2017-10-28 14:25:09 -07:00
Samuel Dion-Girardeau
8e178e9f9b
Add myself to AUTHORS list
2017-10-28 15:08:53 -04:00
Samuel Dion-Girardeau
8e28815d44
Add changelog entry for issue #2879
2017-10-28 15:08:07 -04:00
Samuel Dion-Girardeau
b27dde24d6
Use a nametuple for readouterr() results
...
This allows accessing `out` and `err` directly by attribute,
while preserving tuple unpacking.
Also added tests, one for the `capsys` fixture, and one for the
`MultiCapture` class itself.
2017-10-28 14:53:19 -04:00
Ronny Pfannschmidt
4a436f2255
move responsibility for parameterset extraction into parameterset class
2017-10-27 17:55:07 +02:00
Bruno Oliveira
27cea340f3
Remove trailing whitespace
2017-10-26 21:55:28 -02:00
Bruno Oliveira
c3ba9225ef
Change directory for py27 xdist-related envs
...
The "filter_traceback" function was not filtering the frames
that belonged to the pytest internals.
"filter_traceback" was receiving *relative* paths when running with
xdist, and full paths in non-distributed runs; for this reason
the traceback function did not consider the received path to be
relative to the pytest internal modules.
Fix #2843
2017-10-26 21:34:41 -02:00
Bruno Oliveira
111d640bdb
Merge pull request #2873 from stephenfin/doc/skipping-entire-files
...
doc: Include collector config in the skip doc
2017-10-26 20:21:31 -02:00
Bruno Oliveira
734c435d00
Merge pull request #2870 from Perlence/rewrite-python-37-docstring
...
Adapt the Python 3.7 AST changes
2017-10-26 20:15:22 -02:00
Bruno Oliveira
27bb2eceb4
Add comment about why we remove docstrings on test_assertrewrite
...
As explained in pytest-dev/pytest#2870
2017-10-26 20:15:05 -02:00
Stephen Finucane
383239cafc
doc: Include collector config in the skip doc
...
None of the decorators are sufficient to skip an entire file, for
example if the file contain invalid code for a given Python version.
Simply link to details about customizing the collector.
Signed-off-by: Stephen Finucane <stephen@that.guru >
2017-10-26 17:14:29 +01:00
Sviatoslav Abakumov
fd7bfa30d0
Put imports on the last line unless there are other exprs
2017-10-25 11:05:07 +03:00
Sviatoslav Abakumov
3427d27d5a
Try to get docstring from module node
2017-10-25 10:54:43 +03:00
Ronny Pfannschmidt
def471b975
Merge pull request #2869 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-10-25 09:08:08 +02:00
Ronny Pfannschmidt
f743e95cfc
Merge pull request #2791 from OfirOshir/features
...
bugfix for issue #2491
2017-10-25 09:04:01 +02:00
Bruno Oliveira
4e581b637f
Use zip and map from six
2017-10-24 22:13:32 -02:00
Bruno Oliveira
6b86b0dbfe
Fix additional linting issues
2017-10-24 21:01:00 -02:00
Bruno Oliveira
0b540f98b1
Merge pull request #2864 from bilderbuchi/fix-1505
...
Introduce a dedicated section about conftest.py
2017-10-24 20:12:46 -02:00
Bruno Oliveira
bdab29fa3d
Merge pull request #2867 from Perlence/ini-markers-whitespace
...
Strip whitespace from markers in INI config
2017-10-24 20:11:20 -02:00
Bruno Oliveira
6821d36ca5
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-10-24 19:57:14 -02:00
Ronny Pfannschmidt
5631a86296
Merge pull request #2862 from tom-dalton-fanduel/issue-2836-fixture-collection-bug
...
Issue 2836 fixture collection bug
2017-10-24 16:32:50 +02:00
Sviatoslav Abakumov
52aadcd7c1
Strip whitespace from markers in INI config
...
Resolves #2856 .
2017-10-24 14:18:39 +03:00
Tom Dalton
f5e72d2f5f
Unused import / lint
2017-10-24 11:25:42 +01:00
Tom Dalton
a5ac19cc5e
Merge branch 'issue-2836-fixture-collection-bug' of github.com:tom-dalton-fanduel/pytest into issue-2836-fixture-collection-bug
2017-10-24 10:45:06 +01:00
Tom Dalton
14e3a5fcb9
Move the generic separator to a constant
2017-10-24 10:42:16 +01:00
Florian Bruhin
7b608f976d
Merge pull request #2865 from nicoddemus/contributing-docs
...
Make CONTRIBUTING and PR template more consistent regarding doc contributions
2017-10-24 06:46:32 +02:00
Bruno Oliveira
fe560b7192
Make CONTRIBUTING and PR template more consistent regarding doc contributions
2017-10-23 18:46:14 -02:00
Bruno Oliveira
b61cbc4fba
Merge pull request #2859 from OwenTuz/issue-2692-document-setup-teardown-mismatch-in-unittest-integration
...
2692.docs document setup/teardown behaviour when using unittest-based su…
2017-10-23 18:35:25 -02:00
Bruno Oliveira
a3ec3df0c8
Add E722 and E741 flake errors to the ignore list
...
Also fixed 'E704 multiple statements on one line (def)' in python_api
2017-10-23 18:19:15 -02:00
Christoph Buchner
e23af009f9
Introduce a dedicated section about conftest.py
...
Also reorganize conftest-related content a bit.
Closes #1505 , closes #1770 .
2017-10-23 22:11:09 +02:00
Florian Bruhin
531e0dcaa3
Merge pull request #2863 from lancelote/patch-1
...
Remove typo @ in assignment
2017-10-23 20:51:07 +02:00
Pavel Karateev
dc5f33ba5c
Remove typo @ in assignment
2017-10-23 21:39:13 +03:00
Tom Dalton
655ab0bf8b
Address more review comments, fix massive bug I reintroduced in the node-splitting code :-/
2017-10-23 17:49:49 +01:00
Tom Dalton
a7199fa8ab
Docstring typo
2017-10-23 16:59:56 +01:00
Tom Dalton
d714c196a5
Shorter code, longer docstring
2017-10-23 16:55:35 +01:00
Tom Dalton
ee7e1c94d2
Remove redundant if, tidy if-body
2017-10-23 16:12:07 +01:00
Tom Dalton
de9d116a49
Added Tom Dalton to AUTHORS
2017-10-23 15:37:15 +01:00
Tom Dalton
f003914d4b
Add changelog entry for #2836
2017-10-23 15:37:02 +01:00
Tom Dalton
1e6dc6f8e5
Working (I think) fix for #2836
2017-10-23 13:26:42 +01:00
Tom Dalton
c03612f729
Test now looks for real expected output
2017-10-23 12:40:32 +01:00
Tom Dalton
29fa9d5bff
Add failing test
2017-10-23 12:28:54 +01:00
Owen Tuz
3cdbb1854f
#2692 : Document setup/teardown behaviour when using unittest-based suites
2017-10-21 23:12:49 +01:00
Ronny Pfannschmidt
083084fcbc
Merge pull request #2842 from ceridwen/features
...
Use funcsigs and inspect.signature to do function argument analysis
2017-10-20 07:49:08 +02:00
Bruno Oliveira
f7387e45ea
Fix linting
2017-10-19 21:50:15 -02:00
Ceridwen
3da28067f3
Replace introspection in compat.getfuncargnames() with inspect/funcsigs.signature
2017-10-19 16:01:26 -07:00
Bruno Oliveira
5c71151967
Add more text to the 2.6 and 3.3 announcement
...
The text was a bit short for this important announcement.
2017-10-19 20:48:23 -02:00
Ronny Pfannschmidt
3f9f4be070
Merge pull request #2845 from jespino/fix/2832
...
Adding Failed exception to manage maxfail behavior
2017-10-19 09:12:11 +02:00
Bruno Oliveira
4cb60dac3d
Merge pull request #2850 from bilderbuchi/docs-911
...
Add documentation about python -m pytest invocation.
2017-10-18 19:44:52 -02:00
Bruno Oliveira
a7a39f1364
Update CHANGELOG formatting
2017-10-18 19:26:10 -02:00
Bruno Oliveira
8c7974af01
Merge pull request #2848 from bilderbuchi/fix-538
...
Clarify the documentation of fixture scopes
2017-10-18 19:18:57 -02:00
Bruno Oliveira
e81b275eda
Update formatting in CHANGELOG
2017-10-18 18:54:44 -02:00
Bruno Oliveira
537fc3c315
Merge pull request #2824 from dirk-thomas/pytest_addopts_before_initini
...
get PYTEST_ADDOPTS before calling _initini
2017-10-18 18:35:12 -02:00
Christoph Buchner
46cc9ab77c
Add documentation about python -m pytest invocation.
2017-10-18 21:30:56 +02:00
ApaDoctor
cfd16d0dac
provide error fixture applied to the same func
...
provide error fixture applied to the same func
provide error fixture applied to the same func
2017-10-18 12:01:08 +02:00
Florian Bruhin
2d08005039
Merge pull request #2847 from meawoppl/patch-1
...
Spelling Fix
2017-10-18 07:50:43 +02:00
Christoph Buchner
baadd569e8
Clarify the documentation of fixture scopes. Closes #538 .
2017-10-17 23:42:32 +02:00
Matty G
11b391ff49
Update mark.py
2017-10-17 14:11:07 -07:00
Jesús Espino
00d3abe6dc
Adding Failed exception to manage maxfail behavior
2017-10-17 21:32:20 +02:00
Ronny Pfannschmidt
71c76d96d3
Merge pull request #2834 from aysonje/ignore-setup
...
ignore valid setup.py during --doctest-modules
2017-10-17 07:19:09 +02:00
Bruno Oliveira
3676da594c
Merge pull request #2841 from pgiraud/patch-1
...
Fix auto-use fixture doc
2017-10-16 21:18:18 -02:00
Bruno Oliveira
843872b501
Improve formatting in 502.feature file
2017-10-16 21:07:57 -02:00
Pierre GIRAUD
a4fd5cdcb5
Fix auto-use fixture doc
2017-10-16 10:23:35 +02:00
Florian Bruhin
ae4e596b31
Merge pull request #2840 from MarSoft/patch-2
...
Fix typo in parametrization doc
2017-10-16 05:23:12 +02:00
Семён Марьясин
cfdebb3ba4
Fix typo in parametrization doc
2017-10-16 01:55:30 +03:00
je
eaf38c7239
call path.read(), add tests, add news fragment
2017-10-14 00:49:54 +08:00
je
b29a9711c4
ignore valid setup.py during --doctest-modules
2017-10-14 00:49:45 +08:00
Ronny Pfannschmidt
c750a5beec
Merge pull request #2794 from thisch/catchlog
...
Merge pytest-catchlog plugin
2017-10-12 09:02:46 +02:00
Ronny Pfannschmidt
df37cdf51f
Merge pull request #2808 from georgeyk/allow-module-level-skip
...
Allow module level skip
2017-10-12 06:50:53 +02:00
Thomas Hisch
af75ca435b
Fix some coding-style issues in the logging plugin
2017-10-12 02:19:24 +02:00
Thomas Hisch
8aed5fecd9
Remove test_logging_initialized_in_test
2017-10-12 02:19:24 +02:00
Thomas Hisch
f3261d9418
Move logging docu into own rst file
...
Remove reference of pytest-catchlog plugin in plugins.rst
2017-10-12 02:19:24 +02:00
Thomas Hisch
775f4a6f2f
Fix flake8 issue
2017-10-12 02:19:24 +02:00
Thomas Hisch
502652ff02
Add preliminary documentation for logging-plugin
2017-10-12 02:19:24 +02:00
Thomas Hisch
0e83511d6d
Rename name of registered logging plugin
2017-10-12 02:19:24 +02:00
Thomas Hisch
815dd19fb4
Remove unicode literal compat code
2017-10-12 02:19:24 +02:00
Thomas Hisch
1f3ab118fa
Remove usage of get_logger_obj
2017-10-12 02:19:24 +02:00
Thomas Hisch
0ec72d0745
Improve get_option_ini and get_actual_log_level
2017-10-12 02:19:24 +02:00
Thomas Hisch
69f3bd8336
Add changelog entry for catchlog plugin
2017-10-12 02:19:24 +02:00
Bruno Oliveira
10a3b9118b
Use a relative cache_dir in test because of how arguments are parsed on Windows
...
We use shlex to parse command-line arguments and PYTEST_ADDOPTS, so passing
a full path with '\' arguments produces incorrect results on Windows
Anyway users are advised to use relative paths for portability
2017-10-11 19:37:17 -03:00
Dirk Thomas
ce8c829945
add test for #2824
2017-10-11 09:41:18 -07:00
Dirk Thomas
ed7aa074aa
add changelog file for #2824
2017-10-11 09:41:14 -07:00
Dirk Thomas
66e9a79472
get PYTEST_ADDOPTS before calling _initini
2017-10-11 09:38:44 -07:00
Ronny Pfannschmidt
1480aed781
Merge pull request #2823 from hugovk/features-rm-2.6
...
Remove code for unsupported Python versions
2017-10-10 09:42:32 +02:00
Hugo
be0e2132b7
Update authors [CI skip]
2017-10-10 10:01:15 +03:00
hugovk
7113c76f0d
Remove unused import
2017-10-10 09:03:26 +03:00
hugovk
ef732fc51d
Remove code for unsupported Python versions
2017-10-10 08:54:56 +03:00
Ronny Pfannschmidt
dd45f8ba6c
Merge pull request #2822 from RonnyPfannschmidt/nomore-py26
...
Nomore py26
2017-10-10 07:00:08 +02:00
Ronny Pfannschmidt
c486598440
remove some support code for old python versions
2017-10-09 17:25:13 +02:00
Bruno Oliveira
059455b45d
Merge pull request #2773 from RonnyPfannschmidt/fix-markeval-2767
...
refactor mark evaluators
2017-10-09 12:17:15 -03:00
Ronny Pfannschmidt
73ff53c742
remove eol python from the ci config
2017-10-09 16:36:41 +02:00
Ronny Pfannschmidt
88366b393c
start the removal of python 2.6/3.3 support
2017-10-09 16:35:33 +02:00
Ronny Pfannschmidt
9b0ce535c9
Merge pull request #2801 from nicoddemus/capture-fixture
...
Allow fixtures to use capsys and capfd
2017-10-09 15:26:50 +02:00
Ronny Pfannschmidt
8a6bdb282f
fix changelog entry
2017-10-09 15:21:06 +02:00
Ronny Pfannschmidt
46e30435eb
Merge pull request #2819 from leezu/fix_kwargs_fixtures
...
Fix pytest.parametrize when argnames are specified as kwarg
2017-10-09 06:49:40 +02:00
Leonard Lausen
e86ba41a32
Add testcase for #2819
2017-10-09 01:06:25 +09:00
Leonard Lausen
e89abe6a40
Defensive fallback in case of kwargs not being present
2017-10-09 00:37:27 +09:00
Leonard Lausen
48b5c13f73
Add changelog for #2819
2017-10-08 12:33:02 +09:00
Leonard Lausen
c24ffa3b4c
Fix pytest.parametrize when argnames are specified as kwarg
2017-10-08 12:23:26 +09:00
Ronny Pfannschmidt
459cc40192
skipping: cleanup
...
remove dead comments
fix naming
remove dead code
2017-10-06 10:44:49 +02:00
Ronny Pfannschmidt
e3b73682b2
flake8 fix
2017-10-06 10:44:49 +02:00
Ronny Pfannschmidt
8480075f01
resuffle markevaluator internal structure
2017-10-06 10:44:49 +02:00
Ronny Pfannschmidt
9ad2b75038
skipping: replace _evalskip with a more consistent _skipped_by_mark
2017-10-06 10:44:49 +02:00
Ronny Pfannschmidt
a33650953a
remove unused import
2017-10-06 10:44:49 +02:00
Ronny Pfannschmidt
667e70f555
switch out the placeholder MarkEvaluator in unittest plugin
2017-10-06 10:44:49 +02:00
Ronny Pfannschmidt
761d552814
Merge pull request #2815 from xuanluong/issue-1997-document-xpass
...
Add mention of xpass in skip/xfail documentation
2017-10-06 06:51:35 +02:00
Xuan Luong
4bc6ecb8a5
Add mention of xpass in skip/xfail documentation
2017-10-05 20:14:45 -04:00
George Y. Kussumoto
0668a6c6d3
Add myself to authors file
2017-10-04 22:14:29 -03:00
George Y. Kussumoto
03ce0adb79
Fix: handle CollectReport in folded_skips function
2017-10-04 19:18:55 -03:00
Bruno Oliveira
e7a4d3d8cf
Merge remote-tracking branch 'upstream/master' into features
2017-10-04 17:28:34 -03:00
Bruno Oliveira
9ee0a1f5c3
Merge pull request #2813 from nicoddemus/release-3.2.3
...
Preparing release version 3.2.3
2017-10-04 17:27:36 -03:00
Bruno Oliveira
6b91bc88de
Preparing release version 3.2.3
2017-10-03 21:42:34 +00:00
Ronny Pfannschmidt
61eb20df71
Merge pull request #2810 from nicoddemus/issue-2809
...
Fix warning about non-ascii warnings even when they are ascii
2017-10-03 20:56:23 +02:00
Bruno Oliveira
df6d5cd4e7
Use ascii_escaped to escape unicode warnings
2017-10-03 12:19:37 -03:00
Bruno Oliveira
fbb9e9328b
Fix warning about non-ascii warnings even when they are ascii
...
Fix #2809
2017-10-03 07:39:53 -03:00
George Y. Kussumoto
9824499396
Add 2808.feature changelog entry
2017-10-02 21:26:29 -03:00
George Y. Kussumoto
59f66933cd
Update documentation example of pytest.skip(allow_module_level=True)
2017-10-02 21:26:00 -03:00
George Y. Kussumoto
c1aa63c0bb
Fix docstring alignment and typos
2017-10-02 21:24:52 -03:00
George Y. Kussumoto
e4a6e52b81
Update skipping documentation to include usage of allow_module_level kwarg
2017-10-02 21:07:21 -03:00
George Y. Kussumoto
06307be15d
Add initial tests using skip with allow_module_level kwarg
2017-10-02 21:07:21 -03:00
George Y. Kussumoto
79d3353081
Add allow_module_level kwarg to skip helper
2017-10-02 21:07:21 -03:00
Bruno Oliveira
6690b8a444
Merge pull request #2807 from xuanluong/issue-1442-mention-not--k-help
...
[doc] Add example of -k 'not test' in help text
2017-10-01 14:32:34 -03:00
Xuan Luong
7093d8f65e
Add example of -k 'not test' in help text
2017-09-30 18:43:20 -04:00
Bruno Oliveira
f9589f7b64
Resume output capturing after capsys/capfd.disabled() context manager
...
Fix #1993
2017-09-29 17:24:31 -03:00
Christian Boelsen
794d4585d3
Remove unnecessary complexity in _check_initialpaths_for_relpath().
2017-09-28 20:53:50 +01:00
Ronny Pfannschmidt
d132c502e6
Merge pull request #2804 from nicoddemus/terminal-reporter-tw-2803
...
Deprecate TerminalReporter._tw
2017-09-28 10:01:24 +02:00
Bruno Oliveira
3b30c93f73
Deprecate TerminalReporter._tw
...
Fix #2803
2017-09-27 17:16:34 -03:00
Bruno Oliveira
c0c859ce99
Merge pull request #2799 from blueyed/cleanup-tox.ini
...
minor: cleanup tox.ini
2017-09-27 15:36:10 -03:00
Bruno Oliveira
22f338d74d
Refactor some names for better understanding and consistency
2017-09-26 20:09:42 -03:00
Bruno Oliveira
9919269ed0
Allow to use capsys and capfd in other fixtures
...
Fix #2709
2017-09-26 20:09:36 -03:00
Daniel Hahler
87596714bf
minor: cleanup tox.ini
2017-09-27 00:45:10 +02:00
Thomas Hisch
296ac5c476
Add thisch to AUTHORS
2017-09-26 23:24:27 +02:00
Thomas Hisch
ad21d5cac4
Remove pytest-capturelog backward compat code
2017-09-26 23:24:27 +02:00
Thomas Hisch
2559ec8bdb
use 'formatter' kwarg of catching_logs
2017-09-22 22:27:50 +02:00
Thomas Hisch
207f153ec1
Remove logging_at_level ctx manager
2017-09-22 22:27:50 +02:00
Thomas Hisch
3a4011585f
catching_logs: Remove usage of 'closing' ctx manager
...
The 'closing' context manager is only needed for the log_file_handler.
2017-09-22 22:27:50 +02:00
Thomas Hisch
57f66a455a
catching_logs: Remove unused 'filter' kwarg
2017-09-22 22:27:50 +02:00
Thomas Hisch
e41fd52e8c
Introduce live_logs context manager
2017-09-22 22:27:50 +02:00
Thomas Hisch
08f6b5f4ea
Use pytest.hookimpl instead of pytest.mark.hookwrapper
...
pytest.mark.hookwrapper seems to be used nowhere in the _pytest package.
2017-09-22 22:27:50 +02:00
Thomas Hisch
d13e17cf51
Don't modify the 'config' object in __init__
2017-09-22 22:27:50 +02:00
Thomas Hisch
f1f6109255
Remove _catchlog_ prefix
2017-09-22 22:27:50 +02:00
Thomas Hisch
87b8dc5afb
Move 'config' handling from pytest_configure to __init__
2017-09-22 22:27:50 +02:00
Thomas Hisch
fc965c1dc5
Remove outdated docstring
2017-09-22 22:27:50 +02:00
Thomas Hisch
a1bd54e4ea
Clean-up LogCaptureHandler
2017-09-22 22:27:50 +02:00
Thomas Hisch
36cceeb10e
Set type of log_print ini-variable to 'bool'
2017-09-22 22:27:50 +02:00
Thomas Hisch
3e71a50403
Remove unneeded sys import from unittest
2017-09-22 22:27:50 +02:00
Thomas Hisch
98209e92ee
Remove superfluous whitespace in docstring
2017-09-22 22:27:50 +02:00
Thomas Hisch
1bea7e6985
Cleanup pytest_addoption
2017-09-22 22:27:50 +02:00
Thomas Hisch
1ba219e0da
Adapt (logging) unittest
2017-09-22 22:27:50 +02:00
Thomas Hisch
a8e3effb6c
Upgrade py
2017-09-22 22:27:49 +02:00
Thomas Hisch
ca46f4fe2a
Remove conftest
2017-09-22 22:27:49 +02:00
Thomas Hisch
5130f5707f
Fix name clash
2017-09-22 22:27:49 +02:00
Thomas Hisch
6607478b23
Add unittests for LoggingPlugin (excluding perf tests)
2017-09-22 22:27:49 +02:00
Thomas Hisch
8eafbd05ca
Merge the pytest-catchlog plugin
2017-09-22 22:27:49 +02:00
Ronny Pfannschmidt
de0d19ca09
Merge pull request #2790 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-09-20 10:25:56 +02:00
OfirOshir
d96869ff66
fixing cr
2017-09-20 09:45:40 +03:00
Bruno Oliveira
966391c77e
Merge pull request #2789 from Avira/master
...
Don't crash if an item has no _fixtureinfo attribute
2017-09-19 17:34:43 -03:00
Bruno Oliveira
9c8847a0cb
Merge pull request #2792 from Avira/fix-tox-docs-link
...
fix tox documentation link
2017-09-19 12:31:21 -03:00
Oliver Bestwalter
58aaabbb10
fix tox documentation link
2017-09-19 16:57:16 +02:00
Ofir
b57a84d065
updating bugfix changelog
2017-09-19 15:36:12 +03:00
Ofir
c89827b9f2
updating import plugin error test in order to make sure it also checks that the original traceback has been shown to the users
2017-09-19 15:23:07 +03:00
Ofir
062a0e3e68
If an exception happens while loading a plugin, PyTest no longer hides the original traceback.
...
In python2 it will show the original traceback with a new message that explains in which plugin.
In python3 it will show 2 canonized exceptions, the original exception while loading the plugin in addition to an exception that PyTest throws about loading a plugin.
2017-09-19 15:14:08 +03:00
Oliver Bestwalter
2802135741
fix 'DoctestItem' object has no attribute '_fixtureinfo'
...
* doxtests don't seem to have this attribute, so nothing will be written in that case.
* tried to be a good boy scout and tidied up surrounding code a bit (comments, shadowed/unused names, removed random new lines, naming things)
2017-09-19 12:41:12 +02:00
Bruno Oliveira
a2da5a691a
Update tox and appveyor environments to use py36 by default
2017-09-18 21:38:15 -03:00
Bruno Oliveira
afe7966683
Fix call to outcome.get_result now that outcome.result is deprecated
2017-09-18 21:36:54 -03:00
Bruno Oliveira
3ebfb881c9
Merge remote-tracking branch 'upstream/master' into features
2017-09-18 19:10:31 -03:00
Ronny Pfannschmidt
bf77daa2ee
Merge pull request #2785 from nicoddemus/py36
...
Change to py36 as main environment for Python 3 environments in tox
2017-09-17 09:19:06 +02:00
Bruno Oliveira
9933635cf7
Change to py36 as main environment for Python 3 environments in tox
...
This also has the benefit of working around Travis recent failures
in Python 3.5 environments.
2017-09-16 19:18:07 -03:00
Bruno Oliveira
ac5c5cc1ef
Merge pull request #2750 from evanunderscore/fix-filescompleter
...
Fix crash in FastFilesCompleter with no prefix
2017-09-14 20:11:43 -03:00
Bruno Oliveira
810320f591
Small fixes to development_guide: title and label names
...
* Fix title to use a proper "title" section marker
* Fix labels by adding a " " after the ":"
* Fix OS labels after obvious mishap
* Sort labels
2017-09-14 19:58:56 -03:00
Bruno Oliveira
25d2acbdb2
Merge pull request #2760 from nicoddemus/labels
...
Add development guide to docs
2017-09-14 19:20:45 -03:00
Bruno Oliveira
52c134aed3
Add development guide to docs
2017-09-13 19:32:40 -03:00
Christian Boelsen
14b6380e5f
Fix #2775 - running pytest with "--pyargs" will result in Items with empty "parent.nodeid" if run from a different root directory
2017-09-13 17:15:32 +01:00
Ronny Pfannschmidt
70cdfaf661
Merge pull request #2754 from nicoddemus/xfail_strict
...
Set xfail_strict=True in pytest's own test suite
2017-09-13 09:01:32 +02:00
Bruno Oliveira
abfd9774ef
Remove xfail mark from passing test in py26
2017-09-12 17:59:09 -03:00
Bruno Oliveira
e57cc55719
Merge pull request #2766 from xuanluong/issue-1548-docs-multiple-calls-metafunc-parametrize
...
Update documentation on multiple calls of metafunc.parametrize
2017-09-10 02:07:06 -03:00
Xuan Luong
696c702da7
Update documentation on multiple calls of metafunc.parametrize
2017-09-10 00:23:23 -04:00
Bruno Oliveira
bee2c864d8
Merge pull request #2765 from xuanluong/pass-callable-to-marker-typo
...
Fix typo in example of passing a callable to markers
2017-09-09 21:03:13 -03:00
Xuan Luong
e27a0d69aa
Rename changelog file to PR id number
2017-09-09 18:26:15 -04:00
Xuan Luong
15222ceca2
Fix typo in example of passing a callable to markers
2017-09-09 18:22:23 -04:00
Bruno Oliveira
3c1ca03b9c
Merge pull request #2763 from jhamman/docs/skipif_class_warning
...
add warning to skipping docs re marker inheritance
2017-09-09 15:15:47 -03:00
Ronny Pfannschmidt
25ed4edbc7
Merge pull request #2764 from xuanluong/issue-2758-fix-mark-decorator-equality
...
[bugfix] Checking MarkDecorator equality returns False for non-MarkDecorator object
2017-09-09 10:03:49 +02:00
Xuan Luong
1e93089165
[bugfix] Checking MarkDecorator equality returns False for non-MarkDecorator object
2017-09-09 01:31:08 -04:00
Joe Hamman
b2a8e06e4f
add warning to skipping docs re marker inheritance
2017-09-08 12:01:33 -07:00
Bruno Oliveira
9273e11f21
Merge branch 'master' into features
2017-09-07 13:59:10 -03:00
Bruno Oliveira
09349c344e
Merge pull request #2757 from nicoddemus/release-3.2.2
...
Preparing release version 3.2.2
2017-09-07 13:54:31 -03:00
Evan
6cf515b164
Fix crash in FastFilesCompleter with no prefix
2017-09-08 00:14:56 +10:00
Ronny Pfannschmidt
6967f3070e
Merge pull request #2711 from massich/mimic_raises_signature_in_warns
...
[MRG][feature] Change warns signature to mimic the raises call
2017-09-07 13:19:09 +02:00
Joan Massich
a0c6758202
Add changelog
2017-09-07 10:51:14 +02:00
Joan Massich
80d165475b
Add documentation
2017-09-07 10:28:52 +02:00
Joan Massich
aa6a67044f
Add match_regex functionality to warns
2017-09-07 09:58:03 +02:00
Bruno Oliveira
c52f87ede3
Preparing release version 3.2.2
2017-09-06 21:37:57 +00:00
Bruno Oliveira
549f5c1a47
Merge pull request #2736 from xuanluong/issue-2604-documents-mark.with_args
...
[DOC] Add examples for mark.with_args
2017-09-06 16:33:01 -03:00
Xuan Luong
3f8ff7f090
[DOC] Add examples for mark.with_args
2017-09-06 14:26:28 -04:00
Bruno Oliveira
b55a4f805f
Merge pull request #2744 from nicoddemus/pluggy-master
...
Add test environment using pluggy from master branch
2017-09-06 15:03:19 -03:00
Bruno Oliveira
d01f08e96f
Merge branch 'features' into pluggy-master
2017-09-06 13:13:35 -03:00
Ronny Pfannschmidt
ad36407747
Merge pull request #2700 from nicoddemus/staticmethods-fixtures
...
Allow tests declared as @staticmethod to use fixtures
2017-09-06 08:24:00 +02:00
Bruno Oliveira
e1f2254fc2
Merge pull request #2734 from RonnyPfannschmidt/simplify-string-safening
...
simplyfy ascii escaping by using backslashreplace error handling
2017-09-05 21:14:27 -03:00
Bruno Oliveira
10d43bd3bf
Set xfail_strict=True in pytest's own test suite
...
Fix #2722
2017-09-05 19:57:26 -03:00
Bruno Oliveira
f825b4979b
Merge remote-tracking branch 'upstream/master' into features
2017-09-05 19:44:33 -03:00
Bruno Oliveira
3d70727021
Improve wording in changelog entry
2017-09-05 19:36:53 -03:00
Bruno Oliveira
1fc185b640
Add comment about possible future refactoring in the fixture mechanism
2017-09-05 19:28:39 -03:00
Bruno Oliveira
7d59b2e350
Fix call to outcome.force_result
...
Even though the test is not running at the moment (xfail), at least
we avoid future confusion
2017-09-05 19:08:20 -03:00
Bruno Oliveira
d9992558fc
Refactor tox.ini so pluggymaster envs share definitions
2017-09-05 19:04:58 -03:00
Bruno Oliveira
d1f71b0575
Merge pull request #2752 from tarcisiofischer/issue-2751-fix-flaky-testdir
...
Issue 2751 fix flaky testdir
2017-09-05 18:51:08 -03:00
Tarcisio Fischer
de6b41e318
Update changelog and AUTHORS files, following the CONTRIBUTING guidelines
2017-09-05 15:46:32 -03:00
Tarcisio Fischer
8d1903fed3
Avoid creating arbitrary filenames for tmpdir on Testdir's constructor
...
Fixes #2751
2017-09-05 15:22:04 -03:00
Ronny Pfannschmidt
13eac944ae
restore ascii escaping for python 3.3/3.4
2017-09-04 21:25:46 +02:00
Joan Massich
d8ecca5ebd
Add test to design warns signature in TDD mimicking raises signature
2017-09-04 15:26:00 +02:00
Bruno Oliveira
9bbf14d0f6
Create explicit 'pluggymaster' env definitions
...
For some reason, the previous approach brakes 'coveralls' because
pip still tries to install the 'pluggy' master requirement
(git+https://...)
2017-09-01 20:40:14 -03:00
Bruno Oliveira
c42d966a40
Change all pytest report options to the more concise '-ra' in tox.ini
2017-09-01 18:57:42 -03:00
Bruno Oliveira
3dc0da9339
Remove __multicall__ warning and usages in testing
...
pluggy>=0.5 already warns about those
2017-09-01 18:53:06 -03:00
Bruno Oliveira
11ec6aeafb
Add test environment using pluggy from master branch
...
Fix #2737
2017-09-01 18:33:30 -03:00
Ronny Pfannschmidt
9d373d83ac
Merge pull request #2741 from nicoddemus/pytester-makepyfile
...
Encode utf-8 byte strings in pytester's makefile
2017-09-01 08:31:35 +02:00
Ronny Pfannschmidt
181bd60bf9
Merge pull request #2742 from nicoddemus/resultlog-deprecation
...
Improve user guidance regarding ``--resultlog`` deprecation
2017-09-01 08:29:41 +02:00
Bruno Oliveira
3288c9a110
Improve user guidance regarding `--resultlog` deprecation
...
Fix #2739
2017-08-31 19:11:41 -03:00
Bruno Oliveira
221797c609
Encode utf-8 byte strings in pytester's makefile
...
Fix #2738
2017-08-31 18:49:06 -03:00
Ronny Pfannschmidt
5e00549ecc
Merge pull request #2735 from fgmacedo/fgm-fix-reprfuncargs-toterminal
...
2731.bug Fix ReprFuncArgs with mixed unicode and utf-8 args.
2017-08-31 09:36:56 +02:00
Ronny Pfannschmidt
b770a32dc8
Merge pull request #2707 from cybergrind/fix_baseexception
...
Catch BaseException in safe_getattr
2017-08-31 09:35:07 +02:00
Bruno Oliveira
f9157b1b6b
Improve CHANGELOG entry to be more user-friendly
2017-08-30 21:21:44 -03:00
Bruno Oliveira
f4e811afc0
Merge remote-tracking branch 'upstream/master' into cybergrind/fix_baseexception
2017-08-30 21:11:22 -03:00
Fernando Macedo
59cdef92be
fixes #2731 ReprFuncArgs with mixed unicode and utf-8 args
2017-08-30 16:06:12 -03:00
Ronny Pfannschmidt
78a027e128
simplyfy ascii escaping by using backslashreplace error handling
2017-08-30 16:43:16 +02:00
Bruno Oliveira
709b8b65a4
Merge pull request #2721 from josepht/patch-1
...
Fix typo in goodpractices.rst
2017-08-29 22:08:20 -03:00
Bruno Oliveira
0824076e11
Merge pull request #2710 from massich/raises_match_doc
...
[DOC] update raises documentation regarding regex match
2017-08-29 21:01:27 -03:00
Ronny Pfannschmidt
488bbd2aeb
Merge pull request #2719 from tgoodlet/stop_vendoring_pluggy
...
Stop vendoring pluggy
2017-08-29 09:08:07 +02:00
Tyler Goodlet
312891daa6
Add a trivial changelog entry
2017-08-25 15:34:42 -04:00
Tyler Goodlet
fe415e3ff8
Use latest patch release
2017-08-25 11:49:02 -04:00
Tyler Goodlet
ff35c17ecf
Drop wrapper module; import directly
2017-08-25 11:46:55 -04:00
Joe Talbott
67161ee9f8
Add changelog item for PR #2721 .
2017-08-25 10:06:45 -04:00
Joe Talbott
1c891d7d97
Fix typo in goodpractices.rst
2017-08-25 10:01:24 -04:00
Tyler Goodlet
9ab83083d1
Update docs
2017-08-24 16:53:37 -04:00
Tyler Goodlet
756db2131f
Drop vendoring from packaging
2017-08-24 16:53:24 -04:00
Tyler Goodlet
cb700208e8
Drop vendoring task
2017-08-24 16:48:54 -04:00
Tyler Goodlet
333a9ad7fa
Stop vendoring pluggy
...
Resolves #2716
2017-08-24 15:54:33 -04:00
Kirill Pinchuk
12b1bff6c5
compat.safe_getattr now catches OutcomeExceptions too
2017-08-23 17:17:03 +03:00
Joan Massich
657976e98a
update raises documentation regarding regex match
2017-08-22 12:12:48 +02:00
Bruno Oliveira
a993add783
Allow tests declared as @staticmethod to use fixtures
...
Fix #2699
2017-08-17 20:44:19 -03:00
Ronny Pfannschmidt
539523cfee
Merge pull request #2697 from nicoddemus/match-kw-version
...
Update docs: ``match`` keyword was introduced in 3.1
2017-08-17 14:41:55 +02:00
Bruno Oliveira
f18780ed8a
Update docs: `match` keyword was introduced in 3.1
...
Also update the text to recommend using the context-manager
over the callable/string forms.
2017-08-16 14:28:34 -03:00
Ronny Pfannschmidt
806d47b4d4
Merge pull request #2691 from anhiga/trivial_error
...
Fixed error in 'Good Practices' code snippet
2017-08-16 09:50:32 +02:00
Bruno Oliveira
bfc9f61482
Update the number of plugins in index.rst
2017-08-15 23:05:23 -03:00
Antonio Hidalgo
2a99d82c3b
Fixed error in 'Good Practices' code snippet
2017-08-16 00:26:14 +02:00
Ronny Pfannschmidt
5c0feb2877
Merge pull request #2680 from prokaktus/skipping-same-module
...
Fold skipped tests with global pytestmark variable
2017-08-15 10:52:24 +02:00
Ronny Pfannschmidt
9b2753b302
Merge pull request #2687 from nicoddemus/use-py36-ci
...
Use 3.6 as preferred Python 3 interpreter for CI
2017-08-15 10:49:39 +02:00
Bruno Oliveira
5f17caa156
Merge pull request #2675 from RonnyPfannschmidt/mark-callspeck
...
ensure callspecs contain the list of marks
2017-08-14 20:33:16 -03:00
Bruno Oliveira
e9bfccdf2d
Merge pull request #2678 from jespino/fix/2676
...
Add default values documentation for python_files, python_classes and python_functions
2017-08-14 20:29:39 -03:00
Bruno Oliveira
7b5d26c1a8
Use py36 as preferred Python 3 interpreter for CI testing
2017-08-14 20:27:28 -03:00
prokaktus
98bf5fc9be
Fold skipped tests with global pytestmark variable
2017-08-15 02:18:46 +03:00
Bruno Oliveira
362b1b3c4f
Use tox release candidates in CI
...
Fix #2683
2017-08-14 19:19:20 -03:00
Ronny Pfannschmidt
5c0c1977e3
Merge pull request #2682 from pelme/getfuncargvalue-fix
...
Use the correct stacklevel for getfuncargvalue() deprecation warning.
2017-08-13 18:24:39 +02:00
Andreas Pelme
39331856ed
Use the correct stacklevel for getfuncargvalue() deprecation warning.
...
Fixed #2681 .
2017-08-13 14:59:33 +02:00
Jesús Espino
dc9154e8ff
Add default values documentation for python_files, python_classes and python_functions
2017-08-12 12:29:13 +02:00
Bruno Oliveira
021fba4e84
Update number of plugins on README and poiint to plugincompat link
2017-08-10 21:15:22 -03:00
Ronny Pfannschmidt
eb462582af
fix #2675 - store marks correctly in callspecs
2017-08-10 19:46:36 +02:00
Bruno Oliveira
fd84c886ee
Merge pull request #2671 from nicoddemus/release-3.2.1
...
Release 3.2.1
2017-08-09 17:15:21 -03:00
Bruno Oliveira
e6020781f6
Merge pull request #2653 from felipedau/slow-sharing-note
...
Add note on sharing the `slow` marker in the basic examples
2017-08-09 08:18:26 -03:00
Felipe Dau
acd3c4fbc4
Update changelog for #2653
2017-08-09 02:57:36 +00:00
Felipe Dau
c847b83d56
Use pytest_collection_modifyitems() in the run/skip option example
2017-08-09 02:51:07 +00:00
Bruno Oliveira
45d2962e97
Preparing release version 3.2.1
2017-08-08 21:11:11 +00:00
Bruno Oliveira
8b322afcdb
Make generated doc in simple.rst more reliable
...
Sometimes `test_funcfast` would show up in the `setup` step in
the slowest test durations summary.
2017-08-08 18:04:21 -03:00
Ronny Pfannschmidt
523bfa6151
Merge pull request #2667 from nicoddemus/py36-windows-workaround-error
...
Fix windows console workaround error with non-standard io-streams
2017-08-08 07:10:49 +02:00
Bruno Oliveira
cc0f2473eb
Fix windows console workaround error with non-standard io-streams
...
Fix #2666
2017-08-07 20:57:13 -03:00
Bruno Oliveira
76c55b31c6
Merge pull request #2630 from srinivasreddy/2591
...
Fixed#2591: Replaced os.sep with '/' as it behaves differently on linux and windows.
2017-08-06 11:19:10 -03:00
Srinivas Reddy Thatiparthy
a0101f024e
remove os.sep as it behaves differently linux and windows.
...
* on linux it is '/'
* on windows it is '\'
2017-08-05 23:21:43 +05:30
Ronny Pfannschmidt
d5f4496bdf
Merge pull request #2656 from nicoddemus/unittest-features
...
Document which pytest features work with `unittest`
2017-08-05 09:38:02 +02:00
Bruno Oliveira
37353a854e
Implement suggestions by Raphael
2017-08-04 17:56:13 -03:00
Ronny Pfannschmidt
12e60956de
Merge pull request #2655 from nicoddemus/terminal-collecting-glitch
...
Fix small terminal glitch when collecting a single test item
2017-08-04 14:10:45 +02:00
Bruno Oliveira
15cdf137d5
Document which pytest features work with unittest
...
Fix #2626
2017-08-04 07:44:04 -03:00
Ronny Pfannschmidt
9e62a31b63
Merge pull request #2650 from srinivasreddy/2642
...
Fixed#2642: Convert py module references to six module
2017-08-04 09:21:51 +02:00
Bruno Oliveira
2e33d9b35e
Add changelog entry for using six for portability
2017-08-04 00:03:43 -03:00
Srinivas Reddy Thatiparthy
dc563e4954
convert py module references to six module
2017-08-04 08:05:03 +05:30
Bruno Oliveira
ad52f714a9
Fix small terminal glitch when collecting a single test item
...
Fix #2579
2017-08-03 20:57:46 -03:00
Florian Bruhin
8969bd43c9
Merge pull request #2646 from nicoddemus/issue-2644
...
Properly escape test names when setting PYTEST_CURRENT_TEST environment variable
2017-08-02 16:27:05 +02:00
Bruno Oliveira
7703dc921c
Only skip null bytes before setting the environment variable
...
As discussed, node ids have already been "ascii" sanitized by the
parametrization process
2017-08-02 10:27:45 -03:00
Bruno Oliveira
1deac2e210
Properly escape test names when setting PYTEST_CURRENT_TEST environment variable
...
Fix #2644
2017-08-01 20:52:37 -03:00
Bruno Oliveira
02da156351
Merge pull request #2645 from alex/patch-1
...
Tiny rst syntax fix
2017-08-01 20:14:39 -03:00
Alex Gaynor
84061233ef
Tiny rst syntax fix
2017-08-01 19:10:50 -04:00
Bruno Oliveira
40254b64e5
Merge branch 'master' into features
2017-08-01 19:35:56 -03:00
Bruno Oliveira
0a15edd573
Merge branch 'release-3.2.0'
2017-08-01 18:58:43 -03:00
Bruno Oliveira
51ebad76f2
Fix merge instruction after a minor/major release
2017-08-01 18:24:17 -03:00
Bruno Oliveira
d2bca93109
Update grammar in changelog as requested
2017-08-01 18:01:22 -03:00
Ronny Pfannschmidt
6e7547244b
Merge pull request #2636 from RonnyPfannschmidt/remove-preinit
...
remove preinit, its no longer needed
2017-08-01 05:22:41 +02:00
Ronny Pfannschmidt
333ec8ba5a
Merge pull request #2638 from RonnyPfannschmidt/function-definition
...
small code cleanups
2017-08-01 05:21:21 +02:00
Ronny Pfannschmidt
dcaeef7c10
take review comments into account
2017-07-31 22:21:09 +02:00
Bruno Oliveira
8a2e6a8d51
Fix linting
2017-07-31 16:49:30 -03:00
Ronny Pfannschmidt
74d536314f
pytester: make pytest fullpath a constant
2017-07-31 18:18:53 +02:00
Ronny Pfannschmidt
ceb016514b
remove dead code - Node._memoizedcall
2017-07-31 18:18:26 +02:00
Ronny Pfannschmidt
e90f876b34
remove the last own implementation of pytest_namespace
2017-07-31 13:48:25 +02:00
Ronny Pfannschmidt
c68a89b4a7
remove preinit, its no longer needed
2017-07-31 13:44:05 +02:00
Bruno Oliveira
07dd1ca7b8
Preparing release version 3.2.0
2017-07-30 21:37:18 +00:00
Bruno Oliveira
f1467f8f03
Merge remote-tracking branch 'upstream/master' into features
2017-07-30 18:08:24 -03:00
Bruno Oliveira
763c580a2a
Merge pull request #2576 from maiksensi/feat/raise-not-implemented-for-lt-gt-in-approx
...
#2003 Change behavior of `approx.py` to only support `__eq__` comparison
2017-07-30 17:48:33 -03:00
Bruno Oliveira
e1aed8cb17
Merge pull request #2490 from RonnyPfannschmidt/fix-580
...
Test Outcomes as BaseException - fix #580
2017-07-30 17:38:42 -03:00
Bruno Oliveira
713f7636e1
Merge pull request #2632 from jmoldow/pep_0415_suppress_exception_context
...
Support PEP-415's Exception.__suppress_context__
2017-07-30 17:22:40 -03:00
Bruno Oliveira
4cd8727379
Merge pull request #2617 from wence-/fix/nondeterministic-fixtures
...
Fix nondeterminism in fixture collection order
2017-07-30 17:17:40 -03:00
Bruno Oliveira
5e0e038fec
Merge pull request #2625 from nicoddemus/historical-notes
...
Historical notes in the docs
2017-07-29 12:22:04 -03:00
Jordan Moldow
2e61f702c0
Support PEP-415's Exception.__suppress_context__
...
PEP-415 states that `exception.__context__` should be suppressed
in traceback outputs, if `exception.__suppress_context__` is
`True`.
Now if a ``raise exception from None`` is caught by pytest,
pytest will no longer chain the context in the test report.
The algorithm in `FormattedExcinfo` now better matches the one
in `traceback.TracebackException`.
`Exception.__suppress_context__` is available in all of the
versions of Python 3 that are supported by pytest.
Fixes #2631 .
2017-07-29 02:39:17 -07:00
Bruno Oliveira
8c2319168a
Rephrase the bit about unittest migration to pytest
2017-07-28 23:15:59 -03:00
Bruno Oliveira
768edde899
Merge pull request #2624 from nicoddemus/lf-report-after-collection
...
Fix --last-failed reported items in terminal
2017-07-28 14:48:23 -03:00
Ronny Pfannschmidt
be401bc2f8
fix linting issues
2017-07-28 18:27:59 +02:00
Ronny Pfannschmidt
06a49338b2
make Test Outcomes inherit from BaseException instead of exception
...
fixes #580
2017-07-28 15:28:51 +02:00
Bruno Oliveira
7a12acb6a1
Fix linting
2017-07-28 08:54:55 -03:00
Bruno Oliveira
5acb64be90
Add versionadded tag to pytest_report_collectionfinish hook
2017-07-28 08:54:55 -03:00
Bruno Oliveira
75e6f7717c
Use new hook to report accurate tests skipped in --lf and --ff
2017-07-28 08:54:55 -03:00
Ronny Pfannschmidt
17121960b4
Merge pull request #2621 from nicoddemus/cumulative-cache
...
Make cache plugin cumulative
2017-07-28 13:46:37 +02: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
d46006f791
Fixes in "contact" doc
2017-07-27 19:28:55 -03:00
Bruno Oliveira
f770f16294
Replace deprecated "config.option.<name>" usages from docs
2017-07-27 19:18:44 -03:00
Bruno Oliveira
eb1bd3449e
xfail and skipped tests are removed from the "last-failed" cache
...
This accommodates the case where a failing test is marked as
skipped/failed later
2017-07-27 18:43:04 -03:00
Bruno Oliveira
22212c4d61
Add xfail specific tests
2017-07-27 14:40:21 -03:00
Bruno Oliveira
62810f61b2
Make cache plugin always remember failed tests
2017-07-27 14:40:21 -03:00
Ronny Pfannschmidt
e97fd5ec55
Merge pull request #2623 from nicoddemus/post-collection-report-hook
...
Introduce new pytest_report_collectionfinish hook
2017-07-27 17:17:21 +02:00
Bruno Oliveira
17c544e793
Introduce new pytest_report_collectionfinish hook
...
Fix #2622
2017-07-27 10:44:29 -03:00
Ronny Pfannschmidt
ddf1751e6d
Merge pull request #2613 from nicoddemus/features
...
Merge master into features
2017-07-27 07:59:49 +02:00
Bruno Oliveira
3d89905114
Merge remote-tracking branch 'upstream/master' into features
2017-07-26 19:01:28 -03:00
Bruno Oliveira
1a9bc141a5
Merge pull request #2620 from mihaic/multiple-issues-in-changelog
...
Show multiple issue links in CHANGELOG entries
2017-07-26 16:00:00 -03:00
Mihai Capotă
10ded399d8
Show multiple issue links in CHANGELOG entries
...
Restores the functionality removed in PR #2488 .
2017-07-26 10:58:06 -07:00
Lawrence Mitchell
f047e078e2
Mention new (py26) ordereddict dependency in changelog and docs
2017-07-26 14:41:10 +01:00
Lawrence Mitchell
f8bd693f83
Add ordereddict to install_requires for py26
2017-07-26 14:41:10 +01:00
Lawrence Mitchell
a546a612bd
Fix nondeterminism in fixture collection order
...
fixtures.reorder_items is non-deterministic because it reorders based
on iteration over an (unordered) set. Change the code to use an
OrderedDict instead so that we get deterministic behaviour, fixes #920 .
2017-07-26 14:41:10 +01:00
Bruno Oliveira
dd294aafb3
Merge pull request #2557 from blueyed/EncodedFile-name
...
capture: ensure name of EncodedFile being a string
2017-07-26 10:39:10 -03:00
Lawrence Mitchell
b39f957b88
Add test of issue #920
2017-07-26 14:38:38 +01:00
Bruno Oliveira
2c2cf81d0a
Merge pull request #2580 from andras-tim/fix-runpytest-subprocess
...
Avoid interactive pdb when pytest tests itself - fix #2023
2017-07-26 10:37:48 -03:00
Bruno Oliveira
80f4699572
approx raises TypeError in Python 2 for comparison operators other than != and ==
2017-07-25 20:07:10 -03:00
Maik Figura
57a232fc5a
Remove out of scope change
2017-07-25 19:19:14 -03:00
Maik Figura
1851f36beb
Add PR requirements changelog and authors
2017-07-25 19:19:14 -03:00
Maik Figura
f0936d42fb
Fix linter errors
2017-07-25 19:17:58 -03:00
Maik Figura
d3ab1b9df4
Add user documentation
...
The new doc section explains why we raise a `NotImplementedError`.
2017-07-25 19:17:58 -03:00
Daniel Hahler
0603d1d500
capture: ensure name of EncodedFile being a string
...
Fixes https://github.com/pytest-dev/pytest/issues/2555 .
2017-07-25 20:37:37 +02:00
Bruno Oliveira
79097e84e2
Merge pull request #2615 from blueyed/revisit_contributing.rst
...
Revisit CONTRIBUTING.rst
2017-07-25 13:40:45 -03:00
Bruno Oliveira
1a42e26586
Improve changelog wording to be more user-oriented
2017-07-25 13:37:06 -03:00
Bruno Oliveira
595ecd23fd
Merge pull request #2548 from blueyed/skip-fix-lineno
...
Fix lineno offset in show_skipped
2017-07-25 13:35:14 -03:00
Daniel Hahler
949a1406f0
Revisit CONTRIBUTING.rst
2017-07-25 18:27:26 +02:00
Bruno Oliveira
71947cb4f0
Merge pull request #2546 from blueyed/better-skip-not-allowed-error
...
[RFC] Improve error message for CollectError with skip/skipif
2017-07-25 11:19:25 -03:00
Daniel Hahler
869eed9898
Fix lineno offset in show_skipped
...
The line number is 0-based here, so add 1.
2017-07-25 15:19:47 +02:00
Daniel Hahler
72531f30c0
Improve error message for CollectError with skip/skipif
2017-07-25 15:14:28 +02:00
Bruno Oliveira
73c6122f35
Merge remote-tracking branch 'upstream/master' into features
2017-07-24 21:12:51 -03:00
Bruno Oliveira
70d9f8638f
Merge pull request #2610 from AgriConnect/doctest-lineno
...
Report lineno from doctest
2017-07-24 16:29:02 -03:00
Nguyễn Hồng Quân
d40d77432c
Add test case for DoctestItem.reportinfo()
2017-07-24 23:07:45 +07:00
Bruno Oliveira
e44284c125
Merge pull request #2611 from segevfiner/patch-1
...
Early import colorama so that it get's the correct terminal
2017-07-24 12:37:22 -03:00
Nguyễn Hồng Quân
dea671f8ba
Add changelog for #2610
2017-07-24 22:01:03 +07:00
Nguyễn Hồng Quân
cdaa720bc4
Merge remote-tracking branch 'upstream/master' into doctest-lineno
2017-07-24 21:49:35 +07:00
Segev Finer
d0ecfdf00f
Delete trailing whitespace
2017-07-24 16:55:50 +03:00
Florian Bruhin
81ad185f0d
Merge pull request #2595 from nicoddemus/docs-rootdir-pythonpath
...
Clarify PYTHONPATH changes and ``rootdir`` roles
2017-07-24 15:06:38 +02:00
Bruno Oliveira
d90bef44cc
Update changelog file for #2510
2017-07-24 09:31:16 -03:00
Segev Finer
df12500661
Create 2611.bugfix
2017-07-24 15:28:20 +03:00
Segev Finer
43544a431c
Early import colorama so that it get's the correct terminal
2017-07-24 15:17:39 +03:00
Bruno Oliveira
0aa2480e6a
Fix travis build after change from "precise" to "trusty"
...
Travis recently has changed its dist from "precise" to "trusty", so
some Python versions are no longer installed by default
2017-07-24 07:44:04 -03:00
Florian Bruhin
6473a81b8b
Merge pull request #2608 from nicoddemus/contributing-update
...
Update PR guide and add a "short" version
2017-07-24 12:14:56 +02:00
Nguyễn Hồng Quân
af2c153324
Report lineno from doctest
...
This is to fix pytest-sugar#122 issue.
2017-07-24 11:52:24 +07:00
Florian Bruhin
309152d9fd
Merge pull request #2599 from nicoddemus/turn-warnings-into-errors
...
Turn warnings into errors WIP, waiting #2598
2017-07-23 11:27:14 +02:00
Bruno Oliveira
d5bb2004f9
Fix travis build after change from "precise" to "trusty"
...
Travis recently has changed its dist from "precise" to "trusty", so
some Python versions are no longer installed by default
2017-07-23 00:50:28 -03:00
Bruno Oliveira
bda07d8b27
Ignore socket warnings on windows for trial tests
2017-07-22 21:44:18 -03:00
Bruno Oliveira
0726d9a09f
Turn warnings into errors in pytest's own test suite
...
Fix #2588
2017-07-22 21:44:18 -03:00
Bruno Oliveira
61219da0e2
Update PR guide and add a "short" version
2017-07-22 16:08:18 -03:00
Bruno Oliveira
1b732fe361
Merge pull request #2606 from kalekundert/simplify-numpy
...
Make approx more compatible with numpy
2017-07-22 14:21:08 -03:00
Bruno Oliveira
b35554ca2b
Merge pull request #2607 from kalekundert/remove-code-dup
...
Remove stale copies of raises and approx
2017-07-22 14:20:53 -03:00
Kale Kundert
7e0553267d
Remove unused import.
2017-07-22 09:19:13 -07:00
Kale Kundert
ebc7346be4
Raise TypeError for types that can't be compared to arrays.
2017-07-22 09:05:12 -07:00
Kale Kundert
a3b35e1c4b
Remove raises and approx from python.py.
...
These two classes were recently moved to `python_api.py`, but it seems
that they found their way back into the original file somehow. This
commit removes them again to avoid out-of-date code duplication.
2017-07-22 08:36:15 -07:00
Kale Kundert
4c45bc9971
Add the numpy tests back into tox.ini
...
I'm not sure why they were removed...
2017-07-22 08:24:45 -07:00
Kale Kundert
495f731760
Simplify how comparisons with numpy arrays work.
...
Previously I was subverting the natural order of operations by
subclassing from `ndarray`, but it turns out that you can tell just
numpy to call your operator instead of its by setting the
`__array_priority__` attribute on your class. This is much simpler, and
it turns out the be a little more robust, too.
2017-07-22 07:52:03 -07:00
Andras Tim
50764d9ebb
Avoid interactive pdb when pytest tests itself - fix #2023
...
The debugging.py calls post_mortem() on error and pdb will drops an
interactive debugger when the stdin is a readable fd.
2017-07-21 21:29:03 +02:00
Bruno Oliveira
6461dc9fc6
Merge pull request #2600 from RonnyPfannschmidt/mark_explicit_params
...
fix #2540 , introduce mark.with_args
2017-07-21 10:42:25 -03:00
Florian Bruhin
1cf826624e
Merge pull request #2602 from blueyed/doc-fix-filterwarnings
...
Fix help for filterwarnings ini option
2017-07-21 15:23:22 +02:00
Daniel Hahler
97e5a3c889
Fix help for filterwarnings ini option
2017-07-21 14:21:31 +02:00
Ronny Pfannschmidt
65b2de13a3
fix #2540 , introduce mark.with_args
2017-07-21 13:37:09 +02:00
Bruno Oliveira
3d24485cae
Clarify PYTHONPATH changes and `rootdir` roles
...
- Also minor adjustments in the docs (wording, formatting, links, etc).
Fix #2589
2017-07-21 07:28:11 -03:00
Ronny Pfannschmidt
ccc4b3a501
Merge pull request #2596 from nicoddemus/autopep-tox
...
Add "fix-lint" tox environment
2017-07-21 06:25:59 +02:00
Ronny Pfannschmidt
cbceef2008
Merge pull request #2598 from nicoddemus/filterwarnings-mark
...
Introduce filter-warnings mark
2017-07-21 06:23:18 +02:00
Bruno Oliveira
7341da1bc1
Introduce pytest.mark.filterwarnings
2017-07-20 22:31:49 -03:00
Bruno Oliveira
3c28a8ec1a
Improve formatting/grammar of changelog entries
2017-07-20 22:12:15 -03:00
Bruno Oliveira
22f54784c2
Add "fix-lint" tox environment to fix linting errors
2017-07-20 22:12:15 -03:00
Bruno Oliveira
abb5d20841
Merge branch 'master' into features
2017-07-20 22:10:58 -03:00
Bruno Oliveira
da12c52347
Fix: do not load hypothesis during test_logging_initialized_in_test
...
A recent release seem to have added a "logging" import to the top-level,
which breaks test_logging_initialized_in_test
2017-07-20 21:43:24 -03:00
Floris Bruynooghe
9e3e58af60
Merge pull request #2594 from nicoddemus/fix-flake8-errors
...
Merge master into features and fix flake8 errors
2017-07-20 23:20:55 +02:00
Floris Bruynooghe
56e6b4b501
Merge pull request #2578 from Llandy3d/2375
...
Provides encoding attribute on CaptureIO
2017-07-20 23:14:14 +02:00
Bruno Oliveira
d44565f385
Merge remote-tracking branch 'upstream/master' into fix-flake8-errors
2017-07-19 17:57:30 -03:00
Bruno Oliveira
24da938321
Fix additional flake8 errors
2017-07-19 17:42:21 -03:00
Bruno Oliveira
26ee2355d9
Merge remote-tracking branch 'upstream/features' into fix-flake8-errors
2017-07-19 17:09:05 -03:00
Bruno Oliveira
c92760dca8
Merge branch 'fix-flake8-issues'
2017-07-19 17:03:36 -03:00
Bruno Oliveira
61d4345ea4
Merge pull request #2593 from hackebrot/extend-pytester-docs-for-testing-plugin-code
...
Extend pytester docs for testing plugin code
2017-07-19 16:40:00 -03:00
Raphael Pierzina
1ac02b8a3b
Add plugin code
2017-07-19 20:15:27 +02:00
Raphael Pierzina
d06d97a7ac
Remove unnecessary comma from docs
2017-07-19 19:42:33 +02:00
Raphael Pierzina
e73a2f7ad9
Add changelog entry changelog/971.doc
2017-07-19 19:38:21 +02:00
Raphael Pierzina
91b4b229aa
Update documentation for testing plugin code
2017-07-19 19:38:21 +02:00
Raphael Pierzina
2840634c2c
Fix typo and improve comment about cookiecutter-template
2017-07-19 19:38:21 +02:00
Florian Bruhin
eb79fa7825
Merge pull request #2590 from nicoddemus/current-test-var
...
Introduce new PYTEST_CURRENT_TEST environment variable
2017-07-19 15:56:32 +02:00
Bruno Oliveira
d7f182ac4f
Remove SETUPTOOLS_SCM_PRETEND_VERSION during linting
...
It was needed because of check-manifest, but we no longer have a
MANIFEST file so it is not necessary
2017-07-19 10:02:13 -03:00
Bruno Oliveira
2d4f1f022e
Introduce PYTEST_CURRENT_TEST environment variable
...
Fix #2583
2017-07-19 10:01:50 -03:00
Bruno Oliveira
2c03000b96
Merge pull request #2585 from RonnyPfannschmidt/fix-2573
...
remove the MARK_INFO_ATTRIBUTE warning until we can fix internal usage
2017-07-19 07:46:38 -03:00
Ronny Pfannschmidt
62556bada6
remove the MARK_INFO_ATTRIBUTE warning until we can fix internal usage
...
fixes #2573
2017-07-19 08:44:52 +02:00
Bruno Oliveira
637e566d05
Separate all options for running/selecting tests into sections
2017-07-18 22:50:32 -03:00
Bruno Oliveira
3a1c9c0e45
Clarify in the docs how PYTEST_ADDOPTS and addopts ini option work together
2017-07-18 15:37:01 -03:00
Ronny Pfannschmidt
0e559c978f
Merge pull request #2587 from nicoddemus/remove-impl-file
...
Remove _pytest/impl file
2017-07-18 16:44:18 +02:00
Bruno Oliveira
bd96b0aabc
Remove _pytest/impl file
...
The file apparently contains an early design document to what
has become @pytest.fixture and can be deleted
2017-07-18 09:47:06 -03:00
Bruno Oliveira
7b1870a94e
Fix flake8 in features branch
2017-07-17 21:16:14 -03:00
Bruno Oliveira
4fd92ef9ba
Merge branch 'fix-flake8-issues' into features
2017-07-17 21:05:39 -03:00
Bruno Oliveira
ac3f2207bb
Merge pull request #2575 from MartinAltmayer/master
...
#2574 Options --fixtures and --fixtures-per-test keep indentation of docstrings
2017-07-17 18:06:56 -03:00
Andras Tim
b2a5ec3b94
updated meta
2017-07-17 02:16:51 +02:00
Andras Tim
b49e8baab3
Fixed E731 flake8 errors
...
do not assign a lambda expression, use a def
2017-07-17 01:44:23 +02:00
Andras Tim
15610289ac
Fixed E712 flake8 errors
...
comparison to True should be ‘if cond is True:’ or ‘if cond:’
2017-07-17 01:44:23 +02:00
Andras Tim
5ae59279f4
Fixed E704 flake8 errors
...
multiple statements on one line (def)
2017-07-17 01:44:23 +02:00
Andras Tim
bf259d3c93
Fixed E702 flake8 errors
...
multiple statements on one line (semicolon)
2017-07-17 01:44:23 +02:00
Andras Tim
85141a419f
Fixed E701 flake8 errors
...
multiple statements on one line (colon)
2017-07-17 01:44:23 +02:00
Andras Tim
7d2ceb7872
Fixed E501 flake8 errors
...
line too long (> 120 characters)
2017-07-17 01:44:23 +02:00
Andras Tim
b9e318866e
Fixed E402 flake8 errors
...
module level import not at top of file
2017-07-17 01:44:23 +02:00
Andras Tim
45ac863069
Fixed E401 flake8 errors
...
multiple imports on one line
2017-07-17 01:44:23 +02:00
Andras Tim
7248b759e8
Fixed E303 flake8 errors
...
too many blank lines (3)
2017-07-17 01:44:23 +02:00
Andras Tim
b840622819
Fixed E302 flake8 errors
...
expected 2 blank lines, found 0
2017-07-17 01:44:23 +02:00
Andras Tim
17a21d540b
Fixed E301 flake8 errors
...
expected 1 blank line, found 0
2017-07-17 01:44:23 +02:00
Andras Tim
9bad9b53d8
Fixed E293 flake8 errors
2017-07-17 01:44:23 +02:00
Andras Tim
4730c6d99d
Fixed E272 flake8 errors
...
multiple spaces before keyword
2017-07-17 01:44:23 +02:00
Andras Tim
c9a081d1a3
Fixed E271 flake8 errors
...
multiple spaces after keyword
2017-07-17 01:44:22 +02:00
Andras Tim
195a816522
Fixed E265 flake8 errors
...
block comment should start with ‘# ‘
2017-07-17 01:44:22 +02:00
Andras Tim
eae8b41b07
Fixed E262 flake8 errors
...
inline comment should start with ‘# ‘
2017-07-17 01:44:22 +02:00
Andras Tim
8f3eb6dfc7
Fixed E261 flake8 errors
...
at least two spaces before inline comment
2017-07-17 01:44:22 +02:00
Andras Tim
b226454582
Fixed E251 flake8 errors
...
unexpected spaces around keyword / parameter equals
2017-07-17 01:44:22 +02:00
Andras Tim
4c24947785
Fixed E241 flake8 errors
...
multiple spaces after ‘,’
2017-07-17 01:44:22 +02:00
Andras Tim
617e510b6e
Fixed E231 flake8 errors
...
missing whitespace after ‘,’, ‘;’, or ‘:’
2017-07-17 01:44:22 +02:00
Andras Tim
4b22f270a3
Fixed E226 flake8 errors
...
missing whitespace around arithmetic operator
2017-07-17 01:44:22 +02:00
Andras Tim
2e8caefcab
Fixed E225 flake8 errors
...
missing whitespace around operator
2017-07-17 01:44:22 +02:00
Andras Tim
3fabc4d219
Fixed E222 flake8 errors
...
multiple spaces after operator
2017-07-17 01:44:22 +02:00
Andras Tim
f640e0cb04
Fixed E221 flake8 errors
...
multiple spaces before operator
2017-07-17 01:44:22 +02:00
Andras Tim
ebb6d0650b
Fixed E203 flake8 errors
...
whitespace before ‘:’
2017-07-17 01:44:22 +02:00
Andras Tim
ba0a4d0b2e
Fixed E202 flake8 errors
...
whitespace before ‘)’
2017-07-17 01:28:17 +02:00
Andras Tim
1ff54ba205
Fixed E201 flake8 errors
...
whitespace after ‘(‘
2017-07-17 01:28:17 +02:00
Andras Tim
df54bf0db5
Fixed E131 flake8 errors
...
continuation line unaligned for hanging indent
2017-07-17 01:28:16 +02:00
Andras Tim
1c935db571
Fixed E129 flake8 errors
...
visually indented line with same indent as next logical line
2017-07-17 01:28:16 +02:00
Andras Tim
cf97159009
Fixed E128 flake8 errors
...
continuation line under-indented for visual indent
2017-07-17 01:28:16 +02:00
Andras Tim
57438f3efe
Fixed E127 flake8 errors
...
continuation line over-indented for visual indent
2017-07-17 01:28:16 +02:00
Andras Tim
e855a79dd4
Fixed E126 flake8 errors
...
continuation line over-indented for hanging indent
2017-07-17 01:28:16 +02:00
Andras Tim
92e2cd9c68
Fixed E125 flake8 errors
...
continuation line with same indent as next logical line
2017-07-17 01:28:16 +02:00
Andras Tim
051d76a63f
Fixed E124 flake8 errors
...
closing bracket does not match visual indentation
2017-07-17 01:28:16 +02:00
Andras Tim
4b20b9d8d9
Fixed E123 flake8 errors
...
closing bracket does not match indentation of opening bracket’s line
2017-07-17 01:28:16 +02:00
Andras Tim
425665cf25
Fixed E122 flake8 errors
...
continuation line missing indentation or outdented
2017-07-17 01:28:16 +02:00
Andras Tim
0be97624b7
Fixed E121 flake8 errors
...
continuation line under-indented for hanging indent
2017-07-17 01:28:16 +02:00
Andras Tim
64a4b9058c
Fixed E113 flake8 errors
...
unexpected indentation
2017-07-17 01:28:16 +02:00
Andras Tim
8de49e8742
Fixed E111 flake8 errors
...
indentation is not a multiple of four
2017-07-17 01:28:16 +02:00
Andras Tim
6146ac97d9
Fixed E101 flake8 errors
...
indentation contains mixed spaces and tabs
2017-07-17 01:28:16 +02:00
Andras Tim
6af2abdb53
Fixed flake8 warnings
...
W191 indentation contains tabs
W292 no newline at end of file
W293 blank line contains whitespace
W391 blank line at end of file
2017-07-17 01:28:16 +02:00
Andras Tim
796ffa5123
reformatted tox.ini
2017-07-17 01:27:37 +02:00
Llandy Riveron Del Risco
ba9a76fdb3
Provides encoding attribute on CaptureIO
...
Fix #2375
2017-07-16 14:29:00 +02:00
Martin Altmayer
cc39f41c53
Add myself to AUTHORS as required by the PR help text.
2017-07-15 13:54:18 +02:00
Martin Altmayer
2a979797ef
Add a changelog entry.
2017-07-15 13:43:59 +02:00
Martin Altmayer
e5169a026a
#2574 : --fixtures, --fixtures-per-test keep indentation of docstring
2017-07-15 13:33:11 +02:00
Ronny Pfannschmidt
3578f4e405
Merge pull request #2571 from ahartoto/master
...
Ensure final collected line doesn't include artifacts of previous write
2017-07-13 22:37:33 +02:00
Alex Hartoto
97fdc9a7fe
Ensure final collected line doesn't include artifacts
...
We sometimes would see the following line:
collected 1 item s
just because previous write to the terminal includes number of
characters greater than 'collected 1 item'.
2017-07-13 12:11:20 -07:00
Ronny Pfannschmidt
771cedd3da
Merge pull request #2567 from nicoddemus/add-report-section-docs
...
Add docs for Item.add_report_section in the docs
2017-07-13 10:55:03 +02:00
Ronny Pfannschmidt
81cec9f5e3
Merge pull request #2563 from pv/yield-warn-spam
...
Make YIELD_TEST warning less spammy
2017-07-13 10:45:46 +02:00
Ronny Pfannschmidt
1485a3a902
Merge pull request #2566 from jmsdvl/iss2518
...
Detect and warn/ignore local python installations
2017-07-13 10:44:04 +02:00
Ronny Pfannschmidt
f16c3b9568
Merge pull request #2569 from nicoddemus/backwards-sidebar
...
Add a link to our backwards compatibility policy to our side-bar
2017-07-13 10:43:39 +02:00
Bruno Oliveira
e6b9a81ccf
Add a link to our backwards compatibility policy to our side-bar
...
It is important enough that it should be easier to find
2017-07-12 16:22:16 -03:00
John Still
67fca04050
update docs and note; add virtualenv collection tests
2017-07-11 23:14:38 -05:00
Bruno Oliveira
73b07e1439
Add docs for Item.add_report_section in the docs
...
Fix #2381
2017-07-11 21:45:27 -03:00
John Still
b32cfc88da
use presence of activate script rather than sys.prefix to determine if a dir is a virtualenv
2017-07-11 14:32:09 -05:00
John Still
676c4f970d
trim trailing ws
2017-07-11 13:31:11 -05:00
John Still
c2d49e39a2
add news item
2017-07-11 13:01:56 -05:00
John Still
89c73582ca
ignore the active python installation unless told otherwise
2017-07-11 11:52:16 -05:00
Bruno Oliveira
d9aaab7ab2
Merge remote-tracking branch 'upstream/master' into features
2017-07-10 17:51:59 -03:00
Bruno Oliveira
9e0b19cce2
Merge pull request #2561 from jmsdvl/iss2533
...
Rename _escape_strings to _ascii_escaped
2017-07-10 17:49:44 -03:00
Bruno Oliveira
a87f6f84cc
Merge pull request #2559 from RockBomber/features
...
cache_dir ini option for setting cache directory
2017-07-10 17:49:05 -03:00
Pauli Virtanen
8a7d98fed9
Make YIELD_TEST warning less spammy
...
Emit it only once per each generator, rather than for each generated
function. Also add information about which test caused it to be emitted.
2017-07-10 21:41:09 +02:00
John Still
cdd788085d
add news fragment to changelog folder
2017-07-10 12:37:12 -05:00
John Still
80595115b0
replace all _escape_strings to _ascii_escaped
2017-07-10 12:32:27 -05:00
V.Kuznetsov
bd52eebab4
changelog for ini option cache_dir
2017-07-07 13:20:39 +03:00
V.Kuznetsov
91418eda3b
docs for ini option cache_dir
2017-07-07 13:08:12 +03:00
V.Kuznetsov
7a9fc69435
tests for ini option cache_dir
2017-07-07 13:07:33 +03:00
V.Kuznetsov
f471eef661
ini option cache_dir
2017-07-07 13:07:06 +03:00
Ronny Pfannschmidt
ef62b86335
Merge pull request #2492 from kalekundert/features
...
Add support for numpy arrays (and dicts) to approx.
2017-07-06 11:46:51 +02:00
Ronny Pfannschmidt
7cd03d7611
Merge pull request #2554 from nicoddemus/pytest-configure-order
...
Clarify pytest_configure hook call order
2017-07-05 14:22:55 +02:00
Bruno Oliveira
3667086acc
Clarify pytest_configure hook call order
...
Fix #2539
2017-07-05 07:50:59 -03:00
Ronny Pfannschmidt
db24a3b0fb
Merge pull request #2552 from nicoddemus/strict-help-message
...
Change --strict help message to clarify it deals with unregistered markers
2017-07-05 06:14:25 +02: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
Kale Kundert
7a1a439049
Use cls instead of ApproxNumpyBase.
...
Slightly more general, probably doesn't make a difference.
2017-07-04 09:20:52 -07:00
Bruno Oliveira
b62aef3372
Merge branch 'master' into features
2017-07-04 12:44:58 -03:00
Kale Kundert
c111e9dac3
Avoid making multiple ApproxNumpy types.
2017-07-03 22:45:24 -07:00
Kale Kundert
8524a57075
Add "approx" to all the repr-strings.
2017-07-03 22:44:37 -07:00
Bruno Oliveira
b63f6770a1
Preparing release version 3.1.3
2017-07-03 23:29:13 +00:00
Bruno Oliveira
8a8687122d
Add wheel to tasks/requirements.txt: required for package creation
2017-07-03 23:28:29 +00:00
Bruno Oliveira
7277fbdb20
Fix SMTP port in fixture docs
...
Also add timeout to avoid regen getting stuck due
to connection problems
Fix #2509
2017-07-03 20:21:41 -03:00
Bruno Oliveira
6908d93ba1
Merge pull request #2475 from ant31/master
...
[wip] Fix ignore_path condition
2017-07-03 18:57:17 -03:00
Bruno Oliveira
c578418791
Add changelog for triple leading '/' problem.
2017-07-03 12:39:17 -03:00
Ronny Pfannschmidt
0303d95a53
Merge pull request #2531 from waisbrot/staticmethods
...
Allow staticmethods to be detected as test functions
2017-06-29 16:18:55 +02:00
Nathaniel Waisbrot
9b9fede5be
allow staticmethods to be detected as test functions
...
Allow a class method decorated `@staticmethod` to be collected as a test
function (if it meets the usual criteria).
This feature will not work in Python 2.6 -- static methods will still be
ignored there.
2017-06-29 07:44:36 -04:00
Ronny Pfannschmidt
9b51fc646c
Merge pull request #2526 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-06-24 11:25:35 +02:00
Ronny Pfannschmidt
6eeab45a8f
Merge pull request #2525 from nicoddemus/deprecate-old-style
...
Add changelog entry explicitly deprecating old-style classes from pytest API
2017-06-24 11:24:53 +02:00
Antoine Legrand
16df4da1f7
Fix exclude_path check
2017-06-24 10:58:47 +02:00
Bruno Oliveira
3de93657bd
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2017-06-24 00:47:48 -03:00
Bruno Oliveira
1906f8c565
Merge pull request #2524 from RonnyPfannschmidt/fix-2427
...
introduce deprecation warnings for legacy parametersets, fixes #2427
2017-06-24 00:41:44 -03:00
Bruno Oliveira
655d44b413
Add changelog entry explicitly deprecating old-style classes from pytest API
...
Related to #2147
2017-06-24 00:37:40 -03:00
Ronny Pfannschmidt
0d0b01bded
introduce deprecation warnings for legacy parametersets, fixes #2427
2017-06-23 22:06:49 +02:00
Bruno Oliveira
6e2b5a3f1b
Merge pull request #2523 from RonnyPfannschmidt/vendoring-tasks
...
Vendoring tasks
2017-06-23 16:55:32 -03:00
Ronny Pfannschmidt
b3bf7fc496
add tasks for updating vendored libs
2017-06-23 21:26:45 +02:00
Ronny Pfannschmidt
bb659fcffe
Merge pull request #2521 from nicoddemus/show-trivial-changelog
...
Show "trivial" category in CHANGELOG
2017-06-23 17:38:36 +02:00
Bruno Oliveira
6de19ab7ba
Show "trivial" category in CHANGELOG
...
I think it might sense to display in the CHANGELOG internal or
trivial changes because they might trip users between releases.
For example, a note about an internal refactoring (like
moving a class between modules) is useful for a user
that has been using the internal API. Of course
we are not breaking anything because it was an internal API, but no
reason not to save time for users who did use it.
2017-06-23 12:33:50 -03:00
Bruno Oliveira
bab18e10eb
Merge pull request #2517 from RonnyPfannschmidt/mark-expose-nontransfered
...
Mark expose nontransfered marks via pytestmark property
2017-06-23 10:15:39 -03:00
Ronny Pfannschmidt
8d5f2872d3
minor code style fix
2017-06-23 11:59:03 +02:00
Ronny Pfannschmidt
b0b6c355f7
fixup changelog, thanks Bruno
2017-06-23 11:09:16 +02:00
Ronny Pfannschmidt
23d016f114
address review comments
...
* enhance api for fetching marks off an object
* rename functions for storing marks
* enhance deprecation message for MarkInfo
2017-06-23 11:05:38 +02:00
Bruno Oliveira
22b7701431
Merge pull request #2480 from nicoddemus/issue-2469-deprecated-call-ctx
...
deprecated_call context manager captures warnings already raised
2017-06-22 10:53:28 -03:00
Ronny Pfannschmidt
1d926011a4
add deprecation warnings for using markinfo attributes
2017-06-22 15:12:50 +02:00
Bruno Oliveira
ff8dbd0ad8
Add tracebackhide to function call form of deprecated_call
2017-06-22 08:54:39 -03:00
Ronny Pfannschmidt
5e832017d5
Merge pull request #2487 from nicoddemus/recursion-error-2486
...
Fix internal error when trying to detect the start of a recursive traceback
2017-06-22 13:40:32 +02:00
Ronny Pfannschmidt
c791895c93
changelog addition
2017-06-22 10:50:46 +02:00
Ronny Pfannschmidt
19b12b22e7
store pristine marks on function.pytestmark
...
fixes #2516
2017-06-22 10:48:45 +02:00
Ronny Pfannschmidt
64ae6ae25d
extract application of marks and legacy markinfos
2017-06-22 10:41:28 +02:00
Ronny Pfannschmidt
bdec2c8f9e
move marker transfer to _pytest.mark
2017-06-22 08:45:10 +02:00
Ronny Pfannschmidt
4a62102b57
Merge pull request #2511 from nicoddemus/addfinalizer-docs
...
fixture docs: highlight difference between yield and addfinalizer methods
2017-06-22 07:59:44 +02:00
Bruno Oliveira
f2ba8d70b9
Fix typo and add suggestion from review
2017-06-21 09:06:52 -03:00
Bruno Oliveira
afe847ecdc
fixture docs: highlight difference between yield and addfinalizer methods
...
Fix #2508
2017-06-20 23:43:34 -03:00
Kale Kundert
9597e674d9
Use sets to compare dictionary keys.
2017-06-16 08:25:13 -07:00
Kale Kundert
d6000e5ab1
Remove py36 from .travis.yml
...
I thought the file was just out of date, but adding py36 made Travis
complain "InterpreterNotFound: python3.6", so I guess it was correct as
it was.
2017-06-15 20:34:36 -07:00
Kale Kundert
4d02863b16
Remove a dict-comprehension.
...
Not compatible with python26.
2017-06-15 18:56:09 -07:00
Kale Kundert
5d2496862a
Only test numpy with py27 and py35.
...
Travis was not successfully installing numpy with python<=2.6,
python<=3.3, or PyPy. I decided that it didn't make sense to use numpy
for all the tests, so instead I made new testing environments
specifically for numpy.
2017-06-15 18:46:58 -07:00
Kale Kundert
50769557e8
Skip the numpy doctests.
...
They seem like more trouble that they're worth.
2017-06-15 14:53:27 -07:00
Kale Kundert
b41852c93b
Use autofunction to document approx.
...
It used to be a class, but it's a function now.
2017-06-15 14:52:39 -07:00
Kale Kundert
8badb47db6
Implement suggestions from code review.
...
- Avoid importing numpy unless necessary.
- Mention numpy arrays and dictionaries in the docs.
- Add numpy to the list of tox dependencies.
- Don't unnecessarily copy arrays or allocate empty space for them.
- Use code from compat.py rather than writing py2/3 versions of things
myself.
- Avoid reimplementing __repr__ for built-in types.
- Add an option to consider NaN == NaN, because sometimes people use NaN
to mean "missing data".
2017-06-15 09:19:10 -07:00
Ronny Pfannschmidt
8c3c4307db
Merge pull request #2503 from nicoddemus/remove-manifest-check
...
Remove MANIFEST.in and related lint check
2017-06-15 14:23:16 +02:00
Bruno Oliveira
731c35fcab
Remove MANIFEST.in and related lint check
...
Because setuptools_scm already includes all version-controlled files
in an sdist, we don't need to maintain a MANIFEST.in file and anymore
See pytest-dev/pytest-xdist#161
2017-06-14 07:43:21 -04:00
Ronny Pfannschmidt
31b971d79d
Merge pull request #2488 from nicoddemus/issue-links-changelog
...
Add issue links in the CHANGELOG entries
2017-06-14 10:58:59 +02:00
Ronny Pfannschmidt
4e57a39067
Merge pull request #2468 from nicoddemus/collection-report-2464
...
Fix incorrect "collected items" report when specifying tests on the command-line
2017-06-14 10:57:57 +02:00
Ronny Pfannschmidt
af0344e940
Merge pull request #2500 from nicoddemus/issue-2434-doctest-modules
...
Fix decode error in Python 2 for doctests in docstrings
2017-06-14 05:52:44 +02:00
Bruno Oliveira
97367cf773
Remove obsolete comment from rewrite.py
...
This was made obsolete by 021e843427
2017-06-13 23:12:33 -03:00
Bruno Oliveira
336cf3e1f5
Merge pull request #2496 from rmfitzpatrick/pytest2440_handle_subrequest_finalizer_exceptions
...
Handle exceptions in subrequest finalizers
2017-06-13 23:03:03 -03:00
Bruno Oliveira
4e4ebbef5a
Improve test to ensure the expected function is re-raised
2017-06-13 20:16:48 -03:00
Bruno Oliveira
b09d60c60a
Fix decode error in Python 2 for doctests in docstrings
...
Fix #2434
2017-06-13 19:41:34 -03:00
Raphael Pierzina
0908f40e43
Merge pull request #2499 from hackebrot/update-license-dates
...
Update copyright dates in LICENSE, README.rst and in the documentation
2017-06-13 17:18:08 +02:00
Raphael Pierzina
0e73724e58
Add changelog/2499.trivial
2017-06-13 15:15:52 +02:00
Raphael Pierzina
9970dea8c1
Update copyright date in doc pages
2017-06-13 15:00:52 +02:00
Raphael Pierzina
218af42325
Update copyright date in LICENSE and README.rst
2017-06-13 14:58:07 +02:00
Ronny Pfannschmidt
6fa7b16482
Merge pull request #2497 from pkch/firstresult
...
Docs: clarify when hooks stop after the first non-None result
2017-06-13 07:17:05 +02:00
Max Moroz
4a992bafdb
Changelog
2017-06-12 19:55:30 -07:00
Max Moroz
21137cf8c5
Add firstresult=True to the hook docs
2017-06-12 19:45:35 -07:00
Ryan Fitzpatrick
5a856b6e29
handle and reraise subrequest finalizer exceptions
2017-06-12 21:26:42 -04:00
Kale Kundert
89292f08dc
Add a changelog entry.
2017-06-11 19:51:21 -07:00
Kale Kundert
8c22aee256
Resolve merge conflict due to approx being moved.
2017-06-11 19:46:59 -07:00
Kale Kundert
9f3122fec6
Add support for numpy arrays (and dicts) to approx.
...
This fixes #1994 . It turned out to require a lot of refactoring because
subclassing numpy.ndarray was necessary to coerce python into calling
the right `__eq__` operator.
2017-06-11 19:27:41 -07:00
Bruno Oliveira
9bd8907716
Merge pull request #2489 from RonnyPfannschmidt/move-python-api
...
Move python api code to own file
2017-06-11 11:25:35 -03:00
Ronny Pfannschmidt
f8b2277413
changelog fragment
2017-06-11 14:17:40 +02:00
Ronny Pfannschmidt
6be57a3711
move python api helpers out of the python module
...
this separates exposed normal api from collection elements
2017-06-11 12:27:16 +02:00
Ronny Pfannschmidt
36251e0db4
move approx to own file
2017-06-11 12:15:30 +02:00
Bruno Oliveira
f0541b685b
Improve CHANGELOG formatting a bit
2017-06-10 12:31:20 -03:00
Bruno Oliveira
536f1723ac
Add issue links in the CHANGELOG entries
...
This unfortunately no longer supports multiple entries with the same text,
but this is worth the improved readability and navigation IMO
2017-06-10 12:25:40 -03:00
Bruno Oliveira
8bb589fc5d
Fix internal error when trying to detect the start of a recursive traceback.
...
Fix #2486
2017-06-09 19:26:26 -03:00
Bruno Oliveira
467c526307
Merge remote-tracking branch 'upstream/master' into features
2017-06-09 18:33:46 -03:00
Bruno Oliveira
b2d7c26d80
Merge pull request #2483 from nicoddemus/release-3.1.2
...
Preparing release version 3.1.2
2017-06-09 08:18:43 -03:00
Bruno Oliveira
7cbf265bb5
Preparing release version 3.1.2
2017-06-08 17:37:42 -04:00
Ronny Pfannschmidt
917b9a8352
Merge pull request #2476 from nicoddemus/fix-2459-numpy-comparison
...
Fix internal error when a recursion error occurs and frames contain objects that can't be compared
2017-06-07 20:34:36 +02:00
Bruno Oliveira
2127a2378a
Fix internal error with recursive tracebacks with that frames contain objects that can't be compared
...
Fix #2459
2017-06-07 14:40:13 -03:00
Ronny Pfannschmidt
d2db6626cf
Merge pull request #2466 from nicoddemus/remove-unicode-warning
...
Remove UnicodeWarning from pytest warnings
2017-06-07 08:00:36 +02:00
Bruno Oliveira
620ba5971f
deprecated_call context manager captures warnings already raised
...
Fix #2469
2017-06-06 22:40:04 -03:00
Bruno Oliveira
c67bf9d82a
Merge remote-tracking branch 'upstream/master' into features
2017-06-06 20:45:23 -03:00
Bruno Oliveira
57e2ced969
Merge pull request #2473 from ApaDoctor/docs-fixes
...
docs: Create links for objects to show the api
2017-06-06 09:52:54 -03:00
Bruno Oliveira
80944e32ad
Add CHANGELOG entry
2017-06-06 09:09:54 -03:00
ApaDoctor
54a90e9555
docs: Create links for objects to show the api
2017-06-06 01:10:32 +02:00
Bruno Oliveira
9d41eaedbf
Issue UnicodeWarning only for non-ascii unicode
...
Fix #2463
2017-06-05 10:43:15 -03:00
Bruno Oliveira
46d157fe07
Fix collection report when collecting a single test item
2017-06-03 20:39:53 -03:00
Bruno Oliveira
87e4a28351
Fix incorrect collected items report when specifying tests on the command-line
...
Fix #2464
2017-06-03 20:39:53 -03:00
Bruno Oliveira
5ee9793c99
Fix CHANGELOG issue id
...
Fix #2467
2017-06-03 17:34:05 -03:00
Bruno Oliveira
1863b7c7b2
Merge pull request #2462 from segevfiner/py36-windowsconsoleio-workaround
...
[WIP] A workaround for Python 3.6 WindowsConsoleIO breaking with FDCapture
2017-06-03 15:11:36 -03:00
Segev Finer
01ed6dfc3b
Added a changelog entry for the WindowsConsoleIO workaround
2017-06-02 12:38:31 +03:00
Segev Finer
59b3693988
Fixed wrong if in the WindowsConsoleIO workaround
2017-06-02 12:34:26 +03:00
Segev Finer
05796be21a
A workaround for Python 3.6 WindowsConsoleIO breaking with FDCapture
...
Python 3.6 implemented unicode console handling for Windows. This works
by reading/writing to the raw console handle using
``{Read,Write}ConsoleW``.
The problem is that we are going to ``dup2`` over the stdio file
descriptors when doing ``FDCapture`` and this will ``CloseHandle`` the
handles used by Python to write to the console. Though there is still some
weirdness and the console handle seems to only be closed randomly and not
on the first call to ``CloseHandle``, or maybe it gets reopened with the
same handle value when we suspend capturing.
The workaround in this case will reopen stdio with a different fd which
also means a different handle by replicating the logic in
"Py_lifecycle.c:initstdio/create_stdio".
See https://github.com/pytest-dev/py/issues/103
2017-06-02 11:19:03 +03:00
Ronny Pfannschmidt
f826b23f58
Merge pull request #2458 from segevfiner/fix-required-options-help
...
Fix --help with required options
2017-06-02 08:39:19 +02:00
Segev Finer
9abff7f72f
Add a docstring to HelpAction
2017-06-01 22:25:09 +03:00
Segev Finer
f74f14f038
Fix --help with required options
...
This works by adding an argparse Action that will raise an exception in
order to skip the rest of the argument parsing. This prevents argparse
from quitting due to missing required arguments, similar to the way that
the builtin argparse --help option is implemented by raising SystemExit.
Fixes : #1999
2017-06-01 21:29:50 +03:00
Bruno Oliveira
bcbad5b1af
Merge pull request #2140 from pelme/issue2121
...
Handle python_files correctly in assertion rewrite
2017-06-01 07:55:42 -03:00
Ronny Pfannschmidt
5d785e415e
Merge pull request #2454 from nicoddemus/xfail-docs
...
Make it clear that pytest.xfail stops the test
2017-06-01 08:46:49 +02:00
Bruno Oliveira
409d2f1d54
Make it clear that pytest.xfail stops the test
...
Also did a general review of the document to improve the flow
Fix #810
2017-05-31 19:54:01 -03:00
Bruno Oliveira
9adf513c4b
Merge remote-tracking branch 'upstream/master' into features
2017-05-31 13:51:41 -03:00
Bruno Oliveira
cca4de20cf
Merge pull request #2450 from nicoddemus/release-3.1.1
...
Release 3.1.1
2017-05-31 08:55:40 -03:00
Andreas Pelme
c98ad2a0a0
Install py 1.4.33 that contains the fnmatch py.std import fix.
2017-05-31 08:32:51 +02:00
Andreas Pelme
5de203195c
Add changelog for #2121
2017-05-31 08:29:19 +02:00
Andreas Pelme
021e843427
Fixed #2121 Use py.paths fnmatch. This fixes an issue where
...
python_files handled properly when rewriting assertions.
2017-05-31 08:25:04 +02:00
Andreas Pelme
ac9c8fcdab
Failing test for issue #2121
2017-05-31 08:25:04 +02:00
Florian Bruhin
3871810d1c
Merge pull request #2451 from nicoddemus/update-release-howto
...
Update HOWTORELEASE
2017-05-31 07:45:33 +02:00
Bruno Oliveira
281fcd5a58
Update HOWTORELEASE
...
* Remove the CHANGELOG step now that it is automated;
* Overall clean-up and formatting, trying to make the steps more
explicit;
2017-05-30 22:16:54 -03:00
Bruno Oliveira
2fd7626046
Preparing release version 3.1.1
2017-05-30 17:19:34 -04:00
Bruno Oliveira
0540d72c87
Add extra space between changelog items
2017-05-30 17:15:31 -04:00
Bruno Oliveira
1dee443c2b
Merge pull request #2445 from nicoddemus/warnings-remove-filter
...
No longer override existing warning filters during warnings capture
2017-05-30 18:14:01 -03:00
Bruno Oliveira
32e2642233
No longer override existing warning filters during warnings capture
...
Fix #2430
2017-05-30 17:17:36 -03:00
Ronny Pfannschmidt
454426cba5
Merge pull request #2446 from nicoddemus/issue-2441
...
pytest.deprecated_call now captures PendingDeprecationWarning in context manager form
2017-05-30 20:09:37 +02:00
Bruno Oliveira
f96a1d89c5
pytest.deprecated_call now captures PendingDeprecationWarning in context manager form
...
Fix #2441
2017-05-30 12:52:18 -03:00
Bruno Oliveira
ee0844dbd8
Merge pull request #2431 from RonnyPfannschmidt/towncrier
...
initial addition of towncrier
2017-05-30 12:41:37 -03:00
Ronny Pfannschmidt
b74c626026
switch changelog management to towncrier
2017-05-30 15:54:15 +02:00
Ronny Pfannschmidt
4e6e29dbee
Merge pull request #2442 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-05-29 17:55:08 +02:00
Floris Bruynooghe
6117930642
Merge pull request #2438 from nicoddemus/issue-2434
...
Fix unicode issue while running doctests in Python 2
2017-05-29 13:36:07 +02:00
Floris Bruynooghe
7bb06b6dad
Merge pull request #2439 from nicoddemus/warnings-docs
...
Warn that warning-capture can break existing suites in the docs and CHANGELOG
2017-05-29 13:34:39 +02:00
Bruno Oliveira
7950c26a8e
Add Hui Wang to AUTHORS list
2017-05-26 08:09:29 -03:00
Bruno Oliveira
836dc451f4
Fix unicode issue while running doctests in Python 2
...
Fix #2434
2017-05-26 07:35:14 -03:00
Bruno Oliveira
8df3e55a31
Merge pull request #2437 from coldnight/master
...
Correct warnings that contains Unicode message
2017-05-26 07:24:27 -03:00
wanghui
53add4435f
Add ChangeLog
2017-05-26 13:14:42 +08:00
wanghui
d7a5c5716f
Add UnicodeWarning for unicode warnings in Python2
2017-05-26 13:12:02 +08:00
Bruno Oliveira
313a884459
Warn that warning-capture can break existing suites in the docs and CHANGELOG
...
Related to discussion in #2430
2017-05-25 21:19:08 -03:00
wanghui
c39689da41
Correct warnings with unicode message.
2017-05-25 17:59:42 +08:00
Bruno Oliveira
17f64704c2
Merge remote-tracking branch 'upstream/features'
2017-05-23 14:20:12 -03:00
Ronny Pfannschmidt
f9953fbe7c
Merge pull request #2425 from nicoddemus/publish-task
...
Create task for publishing a release
2017-05-23 10:46:48 +02:00
Ronny Pfannschmidt
0ea80eb63c
Merge pull request #2428 from The-Compiler/param-id-docs
...
Add docs for id= with pytest.param
2017-05-23 10:30:54 +02:00
Ronny Pfannschmidt
38ebf8dd10
Merge pull request #2429 from The-Compiler/regenschauer
...
Make --cache-show output deterministic
2017-05-23 10:30:39 +02:00
Ronny Pfannschmidt
04b1583d10
Merge pull request #2426 from The-Compiler/fix-changelog
...
Fix up 3.1 changelog
2017-05-23 08:18:24 +02:00
Florian Bruhin
d9b93674c3
Make --cache-show output deterministic
...
This makes sure things don't jump around in the regenerated docs.
2017-05-23 08:01:39 +02:00
Florian Bruhin
7d6bde2496
Add docs for id= with pytest.param
2017-05-23 07:57:34 +02:00
Florian Bruhin
bd065a12bb
Fix up 3.1 changelog
2017-05-23 07:40:39 +02:00
Bruno Oliveira
f9df750025
Update 3.1.0 release date
2017-05-22 19:39:17 -03:00
Bruno Oliveira
d343f9497c
Merge branch 'release-3.1'
2017-05-22 19:10:06 -03:00
Bruno Oliveira
5192191c38
Create task for publishing a release
2017-05-22 19:06:53 -03:00
Bruno Oliveira
69343310c6
Merge pull request #2422 from pytest-dev/refactor-config
...
Refactor config
2017-05-20 10:00:12 -03:00
Jason R. Coombs
c9c2c34b44
Remove unused parameter
2017-05-20 04:39:45 -04:00
Jason R. Coombs
9beeef970e
Parse the filename in the generator expression
2017-05-20 04:38:30 -04:00
Jason R. Coombs
43aa037ebd
Reindent
2017-05-20 04:38:30 -04:00
Jason R. Coombs
2abf2070f2
Collapse nested for loops into a generator expression
2017-05-20 04:38:30 -04:00
Jason R. Coombs
ce0ff0040f
Reindent and add docstring
2017-05-20 04:38:27 -04:00
Jason R. Coombs
6d2e11b7d1
Extract method for _mark_plugins_for_rewrite
2017-05-20 04:18:41 -04:00
Bruno Oliveira
9b48613baa
Preparing release version 3.1.0
2017-05-19 18:12:59 -04:00
Bruno Oliveira
0ff7f5d0c6
Prepare CHANGELOG for version 3.1.0
2017-05-19 19:10:09 -03:00
Bruno Oliveira
36cf89a2de
Merge remote-tracking branch 'upstream/master' into features
2017-05-19 18:01:56 -04:00
Bruno Oliveira
3a4d37248d
Merge pull request #2414 from nicoddemus/revert-new-style-classes
...
Revert refactor of old-style to new-style classes
2017-05-19 18:58:46 -03:00
Bruno Oliveira
637550b249
Merge pull request #2418 from axil/master
...
small fix in an example from the docs
2017-05-18 12:24:52 -03:00
Lev Maximov
598aefc686
small fix in an example from the docs
2017-05-18 21:18:09 +07:00
Bruno Oliveira
7af0e6bda1
Merge pull request #2415 from flub/training
...
Remove past training
2017-05-17 20:57:50 -03:00
Floris Bruynooghe
f7247dc99d
Remove past training
...
Leaving the sidebar as an example for in the future.
2017-05-17 22:47:51 +01:00
Bruno Oliveira
d86c89e193
Revert refactor of old-style to new-style classes
...
As discussed in the mailing list, unfortunately this might break APIs
due to the subtle differences between new and old-style classes (see #2398 ).
This reverts commit d4afa1554b from PR #2179 .
2017-05-17 18:20:51 -03:00
Florian Bruhin
e484f4760f
Merge pull request #2412 from pytest-dev/pytest-book-ref
...
Add a reference to Python testing book to talks docs
2017-05-17 22:52:13 +02:00
Bruno Oliveira
70bcd1fb7b
Add a reference to Python testing book to talks docs
2017-05-17 17:17:19 -03:00
Ronny Pfannschmidt
6f407ef308
Merge pull request #2411 from nicoddemus/automate-pre-release
...
Automate pre release steps
2017-05-17 14:36:33 +02:00
Bruno Oliveira
feab3ba70f
Implement tasks to improve release automation
2017-05-15 23:44:03 -03:00
Bruno Oliveira
00e7ee532e
Fix minor regendoc issues
2017-05-15 21:57:04 -03:00
Bruno Oliveira
fe49c78f32
Merge remote-tracking branch 'upstream/master' into release-3.1
2017-05-15 21:56:44 -03:00
Bruno Oliveira
3c41349fe1
Merge pull request #2406 from RonnyPfannschmidt/regendoc-reduce-version-noise
...
regendoc: reduce version noise by replacing minor/patch with placeholders
2017-05-15 19:40:45 -03:00
Bruno Oliveira
bd708068ab
Merge branch 'features' into regendoc-reduce-version-noise
2017-05-14 14:34:07 -03:00
Ronny Pfannschmidt
783670b84e
Merge pull request #2274 from dmand/feat/junitxml/suite-name-option
...
Add `junit_suite_name` ini option
2017-05-13 19:10:29 +02:00
Ronny Pfannschmidt
03753ca201
intermediate state after attempt with the plain env, DONT MERGE
2017-05-13 13:25:52 +02:00
Bruno Oliveira
456925b604
Merge pull request #2395 from RonnyPfannschmidt/consider-all-modules
...
Consider all modules
2017-05-12 18:25:12 -03:00
Bruno Oliveira
f39f416c5d
Improve tests a bit
...
Use a normal function instead of a lambda
Parametrize test about suite name option
2017-05-12 17:52:50 -03:00
Ronny Pfannschmidt
d1e44d16e7
regenerate docs from the pytest env
2017-05-12 22:51:20 +02:00
Dmitri Pribysh
2ab8d12fe3
Update changelog and add usage info
2017-05-12 17:48:50 -03:00
Dmitri Pribysh
c9282f9e94
Transition to using ini option for suite name
2017-05-12 17:48:50 -03:00
Dmitri Pribysh
bcfa6264f1
Update AUTHORS list
2017-05-12 17:48:50 -03:00
Dmitri Pribysh
204db4d1e2
Update Changelog
2017-05-12 17:48:50 -03:00
Dmitri Pribysh
fe7d89f033
Add '--junit-suite-name' CLI option
2017-05-12 17:48:50 -03:00
Ronny Pfannschmidt
c765fa6d04
add regendoc normaliz for pytest --version
2017-05-12 22:38:50 +02:00
Ronny Pfannschmidt
f1c4e2c032
regendoc: reduce version noise by replacing minor/patch with placeholders
2017-05-12 22:17:40 +02:00
Ronny Pfannschmidt
a92e397011
add changelog for fixing #2391
2017-05-12 18:39:45 +02:00
Ronny Pfannschmidt
b6125d9a13
Merge pull request #2397 from nicoddemus/announce-task
...
Introduce a task to generate the announcement file for releases
2017-05-11 15:12:12 +02:00
Bruno Oliveira
66ba3c3aa4
Introduce a task to generate the announcement file for releases
2017-05-09 23:50:08 -03:00
Ronny Pfannschmidt
7ee2db23df
Merge pull request #2396 from johndgiese/patch-1
...
Clarify opening paragraph of parameterization docs
2017-05-09 21:36:50 +02:00
David Giese
52c67af63c
Clarify opening paragraph of parameterization docs
...
- Fix a few small grammar mistakes
- Rewrite a few sentences to make them shorter and easier to read
2017-05-09 10:02:08 -04:00
Ronny Pfannschmidt
8bcf88ec12
try to consider all modules after registration as plugin
2017-05-05 11:16:05 +02:00
Florian Bruhin
daca618012
Merge pull request #2389 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-05-04 10:33:00 +02:00
Bruno Oliveira
f3b359f5b8
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
...
# Conflicts:
# _pytest/capture.py
# _pytest/compat.py
# _pytest/python.py
# testing/python/collect.py
# testing/test_mark.py
2017-05-03 19:04:53 -03:00
Ronny Pfannschmidt
3fc917a261
Merge pull request #2385 from nicoddemus/anaconda-badge
...
Add badge for anaconda package version
2017-05-03 07:07:52 +02:00
Ronny Pfannschmidt
814ea9d62c
Merge pull request #2387 from nicoddemus/trial-errors
...
Fix py35-trial environment
2017-05-03 06:52:12 +02:00
Bruno Oliveira
630cca2fba
Fix py35-trial environment
...
After updating to twisted 17.1.0, again the trial tests started to fail; didn't investigate too deep, decided to just
no longer delete "zope" modules when cleaning up after pytester because it seems more zope modules keep
global state that shouldn't be discarded
2017-05-02 21:05:42 -03:00
Florian Bruhin
bfd2563b3a
Merge pull request #2386 from robin0371/show-correct-msg
...
Issue #2383 - AssertionError with wrong number of parametrize arguments
2017-04-29 14:57:01 +02:00
Vitaly Lashmanov
60b8339166
Issue #2383 - Show the correct error message when collect "parametrize" func with wrong args and add test for this case.
2017-04-29 14:32:09 +03:00
Bruno Oliveira
34f488757f
Add badge for anaconda package version
2017-04-28 12:51:40 -03:00
Bruno Oliveira
cccb2cc92b
Merge pull request #1834 from RonnyPfannschmidt/setuptools-scm-take-2
...
second take at setuptools_scm
2017-04-27 09:10:23 -03:00
Bruno Oliveira
d7d2249d99
Merge pull request #2378 from szuliq/patch-1
...
Update docs
2017-04-26 20:55:52 -03:00
Ronny Pfannschmidt
a280e43949
fix import error
2017-04-26 15:57:55 +02:00
Krzysztof Szularz
f0533194ed
Update fixture.rst
...
Remove yet another not needed `request` argument in fixture definition.
2017-04-26 10:31:53 +02:00
Krzysztof Szularz
a9b44c4529
Update docs
...
Remove not needed `request` arg in order to simplify the example.
2017-04-25 16:35:19 +02:00
Ronny Pfannschmidt
e02cb6d7ce
restore setuptools_scm write_to usage
2017-04-23 16:59:08 +02:00
Florian Bruhin
314d4afa57
Merge pull request #2367 from nicoddemus/py36-official-travis
...
Test against py36 official release for consistency with other python versions
2017-04-21 23:19:20 +02:00
Bruno Oliveira
25371ddbfd
Merge pull request #2315 from RonnyPfannschmidt/namespace-hook
...
remove pytest internal usage of the namespace hook
2017-04-21 16:24:20 -03:00
Bruno Oliveira
80225ce72c
Merge pull request #2374 from Kodiologist/getmodpath-file-ext
...
Try not to assume a module's file extension is .py
2017-04-21 16:23:25 -03:00
Ronny Pfannschmidt
4242bf6262
use unknown to specify unknown versions
2017-04-20 21:46:58 +02:00
Kodi Arfer
dcefb287fc
Try not to assume a module's file extension is .py
2017-04-19 12:26:56 -07:00
Ronny Pfannschmidt
2cf422733c
restore linting, drop _pytest._version for check-manifest
2017-04-19 20:25:53 +02:00
Ronny Pfannschmidt
c0a51f5662
restore check-manifst functionality
2017-04-19 20:12:38 +02:00
Ronny Pfannschmidt
31e6fe8f52
HOWTORELEASE.tst: use restructuredtext autonumbering
2017-04-19 19:40:42 +02:00
Ronny Pfannschmidt
c3aee4b1e6
second take at setuptools_scm
...
since setuptools 18.6 fixes the issues with develop installs
https://github.com/pypa/setuptools/blob/master/CHANGES.rst#186
https://github.com/pypa/setuptools/issues/439
2017-04-19 19:40:42 +02:00
Florian Bruhin
581b463b60
Merge pull request #2372 from nicoddemus/pytest-dont-rewrite-docs
...
Document PYTEST_DONT_REWRITE
2017-04-19 13:49:12 +02:00
Bruno Oliveira
90be44c812
Document PYTEST_DONT_REWRITE
...
Fixes #2203
2017-04-19 08:19:19 -03:00
Ronny Pfannschmidt
80cabca21a
Merge pull request #2292 from nicoddemus/defer-hook-checking
...
Verify hooks after collection completes
2017-04-19 13:04:03 +02:00
Bruno Oliveira
cac82e71d8
Improve item.warn handling of fslocation parameter
...
Just pass fslocation forward and let the hook implementer decide what to do with the parameter
2017-04-13 19:01:14 -03:00
Bruno Oliveira
6e2bbe88b1
Test against py36 official release for consistency with other python versions
2017-04-13 17:54:56 -03:00
Bruno Oliveira
d9a2e70155
Change LsofFdLeakChecker to emit a warning instead of failing when detecting leaked FDs
...
Related to #2366
2017-04-13 17:34:48 -03:00
Bruno Oliveira
7dfdfa5813
Merge pull request #2359 from pytest-dev/fix-2343
...
Fix #2343 : Replace version checks by constants.
2017-04-12 07:58:15 -03:00
Michael Howitz
7d4ac14a31
Fix #2343 : Replace version checks by constants.
...
This way they do not have to be recomputed at runtime.
2017-04-12 08:18:09 +02:00
Bruno Oliveira
731776702d
Fix hook name in LsofFdLeakChecker
2017-04-11 21:55:12 -03:00
Bruno Oliveira
0baf5e1499
Fix test that expected "unknown hook" error on stderr
2017-04-11 21:55:12 -03:00
Bruno Oliveira
83c508eea3
Verify hooks after collection completes
...
Fix #1821
2017-04-11 21:55:12 -03:00
Bruno Oliveira
78ac1bf5d1
Merge pull request #2350 from nicoddemus/future-imports-rewrite
...
Ensure rewritten modules don't inherit __future__ flags from pytest
2017-04-11 20:59:05 -03:00
Bruno Oliveira
02da278894
Merge pull request #2357 from ojii/lastfailed-failedfirst
...
Changed behavior if --lf and --ff are both used.
2017-04-11 19:05:01 -03:00
Bruno Oliveira
1125786e78
Improve --lf/--ff test as commented during review
2017-04-11 17:55:55 -03:00
Jonas Obrist
08d83a5c6a
updated changelog and authors files
2017-04-10 17:50:18 +09:00
Jonas Obrist
0ab85e7a9c
Changed behavior if --lf and --ff are both used.
...
When using both --last-failed/--lf and --failed-first/--ff pytest would
run all tests with failed tests first (as if --lf was not provied). This
patch changes it so that when using both flags, only the last failed
tests are run. This makes it easier to set --ff as the default behavior
via the config file and then selectively use --lf to only run the last
failed tests.
2017-04-10 17:46:13 +09:00
Bruno Oliveira
47a2a77cb4
Merge pull request #2354 from shobute/patch-1
...
Corrected documentation typo in fixtures.py
2017-04-07 14:31:36 -03:00
Ben Lloyd
21f1c2b03f
Update fixtures.py
...
Corrected "or or" typo in docstring (and made indentation consistent).
2017-04-07 16:48:38 +01:00
Bruno Oliveira
8c69d5c939
Merge pull request #1940 from skylarjhdownes/master
...
adding documentation about pointing pytest at source files
2017-04-06 23:40:15 -03:00
Bruno Oliveira
f2300fbab2
Fix links in docs
2017-04-06 23:29:41 -03:00
Bruno Oliveira
45852386e5
Fix small typo in docs
2017-04-06 23:02:47 -03:00
Bruno Oliveira
5462697924
Small formatting fixes to nose.rst
2017-04-06 23:01:26 -03:00
Bruno Oliveira
639c592f31
Add missing link in CHANGELOG
2017-04-06 22:59:24 -03:00
Skylar Downes
f7caa56a6b
moved documentation of conftest.py hack to nose.rst
2017-04-06 18:01:03 -07:00
Skylar Downes
3aa4fb62d6
Merge branch 'master' into master
2017-04-06 16:35:38 -07:00
Bruno Oliveira
c734a2d8d5
Merge pull request #2352 from pytest-dev/fix-search-docs
...
Pin sphinx to 1.4 when generating docs to workaround search issues on RTD
2017-04-06 18:41:30 -03:00
Bruno Oliveira
44a3db3dc6
Pin sphinx to 1.4 when generating docs to workaround search issues on RTD
...
Fix #2302
2017-04-06 18:09:01 -03:00
Bruno Oliveira
1b5f898dc5
Ensure rewritten modules don't inherit __future__ flags from pytest
...
In a recent refactoring we enabled all __future__ features in pytest
modules, but that has the unwanted side effect of propagating those
features to compile()'d modules inside assertion rewriting, unless
we pass dont_inherit=False to compile().
2017-04-06 15:00:36 -03:00
Ronny Pfannschmidt
83b241b449
Merge pull request #2347 from reutsharabani/features
...
added option to unicode plugin name
2017-04-06 18:16:20 +02:00
Bruno Oliveira
24ac923938
Add CHANGELOG entry
2017-04-06 12:42:17 -03:00
reut
333ce9849d
added acceptance test for unicode plugin names
2017-04-06 10:54:47 +00:00
reut
417b54abed
added option to unicode plugin name
2017-04-05 13:03:11 +00:00
Ronny Pfannschmidt
144d90932e
Merge pull request #2337 from nicoddemus/2336-unicode-tb
...
Fix exception formatting while importing test modules
2017-03-30 09:12:14 +02:00
Bruno Oliveira
a542ed48a2
Convert using utf-8 instead of ascii in safe_str()
...
This way we don't lose information and the returned string is
ascii-compatible anyway
2017-03-29 15:18:41 -03:00
Bruno Oliveira
58ac4faf0c
Fix exception formatting while importing test modules
...
Fix #2336
2017-03-29 14:43:13 -03:00
Ronny Pfannschmidt
afb1778294
put in a singular namespace hook to work around the strange issue
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
ebeba79be3
remove the namespace hook from mark after the param feature merge
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
6165939b0d
fix rebase mistakes
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
efe03400d8
fixup nose/pytest plugins
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
c9ab421398
fix python2 only import loop failure
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
147bb8aea5
correct setting pytest.config
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
7cdefce656
fix up oversights
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
4d31ea8316
add a comment explaining the modimport tests
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
bb750a7945
add missed file
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
92f6ab1881
fix all singular internal module imports and add a test for them
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
809c36e1f6
add a changelog note for pytest_namespace
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
23bc9815c4
remove pytest_namespace from _pytest.fixtures
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
ae234786ea
remove pytest_namespace from _pytest.python
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
99c8f2d403
remove pytest_namespace from _pytest.main
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
61f418a267
hollow out pytest_namespace in _pytest.fixtures
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
9b58d6eaca
prepare a own pytest.collect fake module in oder to remove the nested builtin namespaces
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
839c936153
_pytest.mark: fix unconfigure after bad configure, still potential bug
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
7d797b7dbf
add a note about the deprecation of the pytest_namespace hook
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
9b755f6ec6
remove pytest_namespace from _pytest.skipping
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
90788defb2
remove pytest_namespace from _pytest.mark and fix latent pytest nesting bug
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
6a02cdbb35
remove pytest_namespace from _pytest/runner.py
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
c74103f395
remove pytest_namespace from recwarn and fixture decorators
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
794fd5658c
remove pytest_namespace from _pytest/debugging.py
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
fab9b993f8
remove pytest_namespace from _pytest.freeze_support
2017-03-28 11:45:06 +02:00
Ronny Pfannschmidt
5818e65cf3
remove pytest_namespace from _pytest/assertion
2017-03-28 11:35:29 +02:00
Ronny Pfannschmidt
2a130daae6
Merge pull request #2072 from nicoddemus/integrate-pytest-warnings
...
Integrate pytest warnings
2017-03-22 17:10:04 +01:00
Bruno Oliveira
0c1c2580d0
Add CHANGELOG entry
2017-03-22 12:40:31 -03:00
Bruno Oliveira
74b54ac0ec
Fix errors related to warnings raised on pypy test environment
...
For some reason pypy raises this warning in the line that the catch_warnings block was added:
______________________________ ERROR collecting ______________________________
C:\ProgramData\chocolatey\lib\python.pypy\tools\pypy2-v5.4.1-win32\lib-python\2.7\pkgutil.py:476: in find_loader
loader = importer.find_module(fullname)
c:\pytest\.tox\pypy\site-packages\_pytest\assertion\rewrite.py:75: in find_module
fd, fn, desc = imp.find_module(lastname, path)
<builtin>/?:3: in anonymous
???
E ImportWarning: Not importing directory 'c:\users\bruno\appdata\local\temp\pytest-of-Bruno\pytest-3192\testdir\test_cmdline_python_package0' missing __init__.py
2017-03-21 22:32:41 -03:00
Bruno Oliveira
2c730743f1
Fix errors related to warnings raised by xdist
...
- pytester was creating a 'pexpect' directory to serve as temporary dir, but due to the fact that
xdist adds the current directory to sys.path, that directory was being considered as candidate
for import as a package. The directory is empty and a warning was being raised about
it missing __init__ file, which is now turned into an error by our filterwarnings config
in pytest.ini.
- Decided to play it safe and ignore any warnings during `pytest.importorskip`.
- pytest-xdist and execnet raise two warnings which should be fixed upstream:
pytest-dev/pytest-xdist/issues/133
2017-03-21 22:17:07 -03:00
Bruno Oliveira
916d272c44
Fix test on linux
2017-03-20 23:44:50 -03:00
Bruno Oliveira
eabe3eed6b
Add docs for the warnings functionality
2017-03-20 23:35:01 -03:00
Bruno Oliveira
fa56114115
Clean up warnings generated by pytest's own suite
2017-03-20 22:13:17 -03:00
Bruno Oliveira
d027f760c0
Avoid displaying the same warning multiple times for an item
2017-03-20 20:40:53 -03:00
Bruno Oliveira
3373e02eae
Add __future__ imports to warnings module
2017-03-20 20:06:01 -03:00
Bruno Oliveira
9f85584656
Merge remote-tracking branch 'upstream/features' into integrate-pytest-warnings
2017-03-20 19:59:05 -03:00
Florian Bruhin
de8607deb2
Merge pull request #1921 from RonnyPfannschmidt/marked-value
...
introduce pytest.Marked as holder for marked parameter values
2017-03-20 10:54:12 +01:00
Ronny Pfannschmidt
e8a1b36c82
add changelog
2017-03-20 10:21:47 +01:00
Ronny Pfannschmidt
6cfe087261
Merge pull request #2320 from pawelad/2239/exit-code-docs
...
Added 'Possible exit codes' section to docs (#2239 )
2017-03-20 06:22:23 +01:00
Paweł Adamczak
8b57aaf944
Added 'Paweł Adamczak' to AUTHORS
2017-03-19 18:38:41 +00:00
Paweł Adamczak
d58bc14645
Added 'Possible exit codes' section to docs ( #2239 )
2017-03-19 18:34:43 +00:00
Ronny Pfannschmidt
e368fb4b29
implement pytest.param
...
this allows a clear addition of parameterization parameters that carry along marks
instead of nesting multiple mark objects and destroying the possibility of creating
function valued parameters,
it just folders everything together into one object carrfying parameters, and the marks.
2017-03-17 16:53:43 +01:00
Ronny Pfannschmidt
a122ae85e9
Merge pull request #2316 from nicoddemus/add-future-imports
...
Add __future__ imports to all pytest modules
2017-03-17 13:41:46 +01:00
Bruno Oliveira
4d947077bb
Fix test in py26 that expected a floor division error message
2017-03-16 23:07:03 -03:00
Bruno Oliveira
e5021dc9dc
Replace py.builtin.print_() calls by builtin print() function
2017-03-16 22:46:51 -03:00
Bruno Oliveira
42a5d6bdfa
Add __future__ imports to all pytest modules
...
This prevents silly errors from creeping in Python 2 when testing in Python 3
2017-03-16 22:45:40 -03:00
Bruno Oliveira
7684b3af7b
Recommend using py36 for testing on CONTRIBUTING
2017-03-16 22:20:38 -03:00
Bruno Oliveira
78194093af
Improve warning representation in terminal plugin and fix tests
2017-03-16 21:57:32 -03:00
Bruno Oliveira
be5db6fa22
Capture warnings around the entire runtestprotocol
...
This is necessary for the warnings plugin to play nice with the
recwarn fixture
2017-03-16 21:54:41 -03:00
Bruno Oliveira
0baed781fe
Merge remote-tracking branch 'upstream/features' into integrate-pytest-warnings
2017-03-16 20:02:06 -03:00
Bruno Oliveira
337f891d78
Fixed tests
2017-03-16 20:01:47 -03:00
Bruno Oliveira
5482dfe0f3
Merge pull request #2303 from nicoddemus/recwarn-refactor
...
Refactor recwarn to use warnings.catch_warnings instead of custom code
2017-03-15 12:27:31 -03:00
Bruno Oliveira
75ec893d75
Merge pull request #2297 from nicoddemus/init-files-docs
...
Attempt to clarify the confusion regarding __init__ files and unique test names
2017-03-15 10:53:09 -03:00
Bruno Oliveira
76df77418d
Merge pull request #2313 from nicoddemus/DontReadFromInput-exceptions
...
Dont read from input exceptions
2017-03-15 10:51:13 -03:00
Bruno Oliveira
55b891ddd0
Merge pull request #2312 from nicoddemus/merge-master-into-features-post-3.0.7
...
Merge master into features post 3.0.7
2017-03-14 23:26:43 -03:00
Bruno Oliveira
aad4946fb6
Move CHANGELOG entry for #2276 to 3.0.8
2017-03-14 18:58:28 -03:00
Xander Johnson
9062fbb9cc
Add AUTHORS & CHANGELOG
2017-03-14 18:55:58 -03:00
Xander Johnson
dc6890709e
Change ValueError to io.UnsupportedOperation in capture.py. Resolves issue #2276
2017-03-14 18:55:58 -03:00
Bruno Oliveira
272aba98e2
Mention the src layout as recommended practice
2017-03-14 18:39:02 -03:00
Bruno Oliveira
6c9011c12f
Merge branch 'master' into merge-master-into-features-post-3.0.7
2017-03-14 18:10:23 -03:00
Bruno Oliveira
fa15ae7545
Post 3.0.7 release handling
2017-03-14 18:07:44 -03:00
Bruno Oliveira
5056d8cbe8
Merge pull request #2304 from nicoddemus/release-3.0.7
...
Release 3.0.7
2017-03-14 18:03:44 -03:00
Bruno Oliveira
4a9348324d
Add more information to test-layout docs as discussed during PR
2017-03-14 07:59:01 -03:00
Ronny Pfannschmidt
5e52a4dda4
Merge pull request #2307 from nicoddemus/clarify-record-xml-property
...
Clarify that record_xml_property is experimental, not junitxml
2017-03-14 09:39:12 +01:00
Bruno Oliveira
92b49d246e
Clarify that record_xml_property is experimental, not junitxml
...
Related to #2306
2017-03-13 23:04:44 -03:00
Bruno Oliveira
90c934e25e
Include release 3.0.7 announce in index.rst
2017-03-13 18:59:15 -04:00
Bruno Oliveira
3c07072bfd
Fix test_recwarn in Python 3.6
...
No longer test for implementation details of recwarn since warnings.catch_warnings has changed
significantly in 3.6.
2017-03-13 19:52:35 -03:00
Bruno Oliveira
d58780f9a6
Update regendoc
2017-03-13 18:41:20 -04:00
Bruno Oliveira
b1ab2ca963
Bump to version 3.0.7 and update CHANGELOG
2017-03-13 18:37:49 -04:00
Bruno Oliveira
22864b75ee
Refactor recwarn to use warnings.catch_warnings instead of custom code
...
Since we dropped 2.5, we can now use warnings.catch_warnings to do the
"catch warnings" magic for us, simplifying the code a bit.
2017-03-13 19:28:36 -03:00
Bruno Oliveira
d1ea7c8cc8
Merge pull request #2301 from nicoddemus/merge-master-into-features
...
Merge master into features
2017-03-12 12:32:44 -03:00
Bruno Oliveira
1e0cf5ce4d
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
...
# Conflicts:
# AUTHORS
# CHANGELOG.rst
# _pytest/pytester.py
2017-03-10 15:54:05 -03:00
Bruno Oliveira
581857aab6
Fix typo
2017-03-09 20:46:22 -03:00
Bruno Oliveira
841f731707
Attempt to clarify the confusion regarding __init__ files and unique test names
...
Fix #529
2017-03-09 20:41:33 -03:00
Ronny Pfannschmidt
906b40fbb2
Merge pull request #2289 from fbjorn/fix-trailing-whitespace-in-terminal
...
Fix trailing whitespace in terminal output
2017-03-05 22:45:46 +01:00
fbjorn
cee578e327
Fix trailing whitespace in terminal output
2017-03-05 23:20:55 +03:00
Florian Bruhin
29383d477d
Merge pull request #2288 from nodakai/patch-1
...
assert.rst: typographical correction
2017-03-05 18:37:07 +01:00
NODA, Kai
e05ff0338a
assert.rst: typographical correction
2017-03-06 01:01:55 +08:00
Bruno Oliveira
272afa9422
Display node ids and the warnings generated by it
...
The rationale of using node ids is that users can copy/paste it to run a chosen test
2017-03-04 20:53:42 -03:00
Bruno Oliveira
bddb922f7b
Rename internal option to disable_warnings
2017-03-04 16:32:10 -03:00
Bruno Oliveira
de09023e45
Also capture warnings during setup/teardown
2017-03-04 16:15:03 -03:00
Bruno Oliveira
e24081bf76
Change warning output
2017-03-04 15:59:20 -03:00
Floris Bruynooghe
b28749eb92
Merge pull request #2284 from omerhadari/bugfix-unprintable-assertion-errors
...
Bugfix unprintable assertion errors
2017-03-04 15:28:11 +00:00
Ronny Pfannschmidt
07623e78ce
Merge pull request #2286 from pytest-dev/disable-py37-travis
...
Allow py37-nightly to fail on Travis
2017-03-04 11:55:07 +01:00
Omer Hadari
dd25ae7f33
added in the correct alphabitcal order
2017-03-04 12:50:02 +02:00
Omer Hadari
02dc545311
added in the correct alphabitcal order
2017-03-04 12:49:00 +02:00
Bruno Oliveira
b61dcded37
Allow py37-nightly to fail on Travis
...
Related to #2285
2017-03-04 07:17:39 -03:00
Omer Hadari
f71467f5b1
added link to changelog
2017-03-04 10:55:59 +02:00
Omer Hadari
6aaf7ae18b
added to authors and changelog
2017-03-04 10:32:14 +02:00
Omer Hadari
6a52fe1650
fixed internal error on unprintable raised AssertionErrors
2017-03-04 10:26:46 +02:00
Ronny Pfannschmidt
0c94f517a1
Merge pull request #2236 from KKoukiou/junitxml-change-schema
...
Change junitxml.py to produce results that comply with Junitxml schema
2017-03-02 17:26:11 +01:00
Katerina Koukiou
26e50f1162
junitxml: adjust junitxml output file to comply with JUnit xsd
...
Change XML file structure in the manner that failures in call and errors
in teardown in one test will appear under separate testcase elements in
the XML report.
2017-03-02 15:10:25 +01:00
Bruno Oliveira
5721d8aed1
Merge pull request #2249 from pfhayes/anydbmfix
...
Fix importing anydbm within pytest
2017-03-01 14:41:31 -03:00
Bruno Oliveira
3aac3d0a00
Merge branch 'master' into anydbmfix
2017-03-01 14:41:18 -03:00
Floris Bruynooghe
3e3f20380e
Merge pull request #2277 from nicoddemus/yield-fixture-docs-2262
...
Improve docs for yield-fixture and with statement a bit
2017-03-01 11:32:18 -03:00
Bruno Oliveira
bb5f200ed7
Improve docs for yield-fixture and with statement a bit
...
Fix #2262
2017-02-25 12:06:51 -03:00
Bruno Oliveira
0f3d7acdc4
Merge pull request #2266 from asottile/capture_v2
...
Make capsys more like stdio streams in python3. Resolves #1407 .
2017-02-24 20:18:55 -03:00
Anthony Sottile
8b598f00e9
Make pytester use pytest's capture implementation
2017-02-23 17:46:28 -08:00
Anthony Sottile
6ba3475448
Make capsys more like stdio streams in python3. Resolves #1407 .
2017-02-23 17:46:27 -08:00
Ronny Pfannschmidt
0a89db2739
Merge pull request #2271 from KKoukiou/double-tag
...
junitxml: Fix double system-out tags per testcase
2017-02-22 18:20:17 +01:00
Katerina Koukiou
d3a6be4130
junitxml: Fix double system-out tags per testcase
...
In the xml report we now have two occurences for the system-out tag if
the testcase writes to stdout both on call and teardown and fails in
teardown.
This behaviour is against the xsd.
This patch makes sure that the system-out section exists only
once per testcase.
2017-02-22 16:39:20 +01:00
Bruno Oliveira
6680cb9100
Merge pull request #2264 from asottile/simplify_travis
...
Simplify travis.yml with tox environment variables
2017-02-19 18:07:13 -03:00
Floris Bruynooghe
44ad369c17
Merge pull request #2263 from nicoddemus/revert-pluggy
...
Revert subclassing explicitly from object introduced by accident in #2260
2017-02-19 16:18:38 -03:00
Floris Bruynooghe
1f0d06641a
Update text to only give access when wanted
...
Also clarify merging perms given the PR approval now available.
2017-02-19 15:16:34 -03:00
Anthony Sottile
5fd010c4c3
Simplify travis.yml with tox environment variables
2017-02-19 09:02:35 -08:00
Bruno Oliveira
82785fcd40
Use warnings.catch_warnings instead of WarningsRecorder
...
This has the benefical side-effect of not calling the original
warnings.showwarnings function, which in its original form
only writes the formatted warning to sys.stdout.
Calling the original warnings.showwarnings has the effect that nested WarningsRecorder all catch the warnings:
with WarningsRecorder() as rec1:
with WarningsRecorder() as rec2:
warnings.warn(UserWarning, 'some warning')
(both rec1 and rec2 sees the warning)
When running tests with `testdir`, the main pytest session would then see the warnings created by
the internal code being tested (if any), and the main pytest session would end up with warnings as well.
2017-02-18 13:08:14 -02:00
Bruno Oliveira
a7643a5fbe
Merge branch 'features' into integrate-pytest-warnings
2017-02-18 11:03:15 -02:00
Bruno Oliveira
f1900bbea6
Revert subclassing explicitly from object introduced by accident in #2260
2017-02-18 10:34:41 -02:00
Bruno Oliveira
21a09f0895
Merge pull request #2261 from vmuriart/doc-report_header
...
Document pytest_report_header and conftest behavior
2017-02-17 12:22:28 -02:00
Victor Uriarte
a88017cf26
Add note documenting #2257
2017-02-16 23:00:55 -07:00
Victor Uriarte
58d7f4e048
Correct typo
2017-02-16 22:52:06 -07:00
Bruno Oliveira
abd6ad3751
Merge pull request #2260 from MichalTHEDUDE/feature/NewStyleClasses-2147
...
New-style classes implemented for python 2.7 - #2147
2017-02-16 19:05:09 -02:00
Michal Wajszczuk
fb0b90646e
New-style classes implemented for python 2.7 - #2147
2017-02-16 20:28:17 +01:00
Bruno Oliveira
9c809f5ad0
Merge pull request #2255 from scop/spelling
...
Spelling fixes
2017-02-15 18:41:49 -02:00
Bruno Oliveira
27f12ed0c3
Merge pull request #2254 from scop/py36-escseq
...
Python 3.6 invalid escape sequence deprecation fixes
2017-02-15 18:41:06 -02:00
Ronny Pfannschmidt
0a26132232
Merge pull request #2241 from nicoddemus/override-python-files
...
--override-ini now correctly overrides some fundamental options like "python_files"
2017-02-15 21:40:50 +01:00
Bruno Oliveira
da828aac05
Merge pull request #2253 from The-Compiler/norecursedirs
...
Add venv to the default norecursedirs
2017-02-15 18:40:38 -02:00
Bruno Oliveira
8f98ac5ae8
Fix typo in docs "textures" -> "fixtures"
2017-02-15 13:15:53 -02:00
Ville Skyttä
ede4e9171f
Spelling fixes
2017-02-15 17:00:58 +02:00
Ville Skyttä
eeb6603d71
Python 3.6 invalid escape sequence deprecation fixes
2017-02-15 16:54:53 +02:00
Ronny Pfannschmidt
231e2f9a90
Merge pull request #2252 from nicoddemus/fixture-visibility-docs
...
Improve pytest_plugins docs
2017-02-15 15:53:30 +01:00
Bruno Oliveira
c4d974460c
Improve pytest_plugins docs
...
As discussed in #2246
2017-02-15 11:57:03 -02:00
Florian Bruhin
91c6bef77a
Add venv to the default norecursedirs
...
venv (without a dot) is commonly used as a name for a virtualenv directory, and
we don't want to collect that.
2017-02-15 14:55:12 +01:00
Patrick Hayes
6b5566db66
Update changelog
2017-02-14 17:47:42 -08:00
Patrick Hayes
49289fed52
Fix docs
2017-02-14 17:21:20 -08:00
Patrick Hayes
00ec30353b
Update docs as requested
2017-02-14 17:08:42 -08:00
Patrick Hayes
58ce3a9e8c
Safer sys.modules delete
2017-02-14 16:54:32 -08:00
Floris Bruynooghe
427bf42a52
Merge pull request #2247 from flub/flub/training
...
Mention next training event.
2017-02-14 12:06:13 +00:00
Floris Bruynooghe
b536fb7ace
Mention next training event.
2017-02-14 11:45:39 +00:00
Bruno Oliveira
9eb1d73951
--override-ini now correctly overrides some fundamental options like "python_files"
...
#2238
2017-02-08 23:03:33 -02:00
Bruno Oliveira
3d9c5cf19f
Merge pull request #2225 from mbyt/allow_skipping_unittests_with_pdb_active
...
Allow to skip unittests if --pdb active
2017-02-08 21:23:51 -02:00
Bruno Oliveira
6a097aa0f1
Merge branch 'master' into allow_skipping_unittests_with_pdb_active
2017-02-08 20:30:14 -02:00
Bruno Oliveira
a4fb971c1f
Merge pull request #2235 from bluetech/dont-execute-properties
...
ignore property errors when parsing fixure factories
2017-02-07 23:41:36 -02:00
Ran Benita
3a0a0c2df9
Ignore errors raised from descriptors when collecting fixtures
...
Descriptors (e.g. properties) such as in the added test case are
triggered during collection, executing arbitrary code which can raise.
Previously, such exceptions were propagated and failed the collection.
Now these exceptions are caught and the corresponding attributes are
silently ignored.
A better solution would be to completely skip access to all custom
descriptors, such that the offending code doesn't even trigger. However
I think this requires manually going through the instance and all of its
MRO for each and every attribute checking if it might be a proper
fixture before accessing it. So I took the easy route here.
In other words, putting something like this in your test class is still
a bad idea...:
@property
def innocent(self):
os.system('rm -rf /')
Fixes #2234 .
2017-02-07 14:27:34 +02:00
Ran Benita
87fb689ab1
Remove an unneeded except KeyboardInterrupt
...
KeyboardInterrupt is a subclass of BaseException, but not of Exception.
Hence if we remove this except, KeyboardInterrupts will still be raised
so the behavior stays the same.
2017-02-07 14:12:09 +02:00
Bruno Oliveira
ccf9877447
Merge pull request #2232 from vidartf/patch-1
...
Do not asssume `Item.obj` in 'skipping' plugin
2017-02-03 21:39:42 -02:00
Bruno Oliveira
a4d2a5785b
Merge pull request #2142 from barneygale/xfail_without_condition_getglobals
...
'xfail' markers without a condition no longer rely on the underlying `Item` objects deriving from `PyobjMixin`
2017-02-03 16:09:47 -02:00
Vidar Tonaas Fauske
832c89dd5f
Test for pytest.mark.xfail with non-Python Item
2017-02-03 17:13:05 +01:00
Vidar Tonaas Fauske
1a88a91c7a
Update authors/history
2017-02-03 16:29:43 +01:00
Vidar Tonaas Fauske
bad261279c
Do not asssume Item.obj in 'skipping' plugin
...
See #2231 for discussion.
2017-02-03 16:04:34 +01:00
Bruno Oliveira
208fae5bf0
Merge pull request #2227 from Kriechi/raises-info
...
add matching the error message to pytest.raises
2017-02-03 00:56:35 -02:00
Bruno Oliveira
abbff681ba
Fix '{0}' format for py26
2017-02-02 18:01:44 -02:00
Thomas Kriechbaumer
43662ce789
allow error message matching in pytest.raises
2017-02-02 19:52:33 +01:00
mbyt
ad56cd8027
extract a _handle_skip method, secure PY2 branch
2017-02-02 05:01:51 +01:00
Bruno Oliveira
176c680e19
Merge branch 'master' into allow_skipping_unittests_with_pdb_active
2017-02-01 15:53:14 -02:00
Ronny Pfannschmidt
da5a3dba87
Merge pull request #2226 from nicoddemus/raise-stop-iteration
...
Replace 'raise StopIteration' usages in the code by 'return's in accordance to PEP-479
2017-02-01 14:50:54 +01:00
Bruno Oliveira
e1c5314d80
Replace 'raise StopIteration' usages in the code by 'return's in accordance to PEP-479
...
Fix #2160
2017-02-01 02:37:55 -02:00
mbyt
36b6f17727
fixing code-style, keep flake8 happy
2017-01-31 21:03:49 +01:00
mbyt
d1c725078a
Allow to skip unittests if --pdb active
...
closes #2137
2017-01-31 04:47:31 +01:00
Ronny Pfannschmidt
3b47cb45e6
Merge pull request #2222 from RonnyPfannschmidt/features
...
merge master into features
2017-01-26 13:48:10 +01:00
Ronny Pfannschmidt
3f30c22894
fix changelog merge mistake
2017-01-26 13:03:29 +01:00
Ronny Pfannschmidt
713bdc1f9f
merge master into features
2017-01-26 12:00:52 +01:00
Bruno Oliveira
0931fe2c89
Merge pull request #2221 from pytest-dev/ionelmc-patch-1
...
Discourage users from using unittest support somewhat
2017-01-25 21:38:44 -02:00
Bruno Oliveira
34e98bce0a
Merge pull request #2198 from unsignedint/make-parametrize-enhancement
...
Enhancement to `make_parametrize_id`hook function
2017-01-25 21:37:18 -02:00
Ionel Cristian Mărieș
c8032a9bbb
Fix reference.
2017-01-25 14:44:07 +02:00
Ionel Cristian Mărieș
d98d122e81
Discourage users from using this all the time.
2017-01-25 14:20:38 +02:00
Bruno Oliveira
beb77c1a38
Fix release date for 3.0.6
2017-01-23 13:51:12 -02:00
Ronny Pfannschmidt
d076e4158f
Merge pull request #2216 from vmuriart/patch-1
...
Add py36 classifier & Add py37 to travis
2017-01-23 10:19:13 +01:00
Victor Uriarte
902fd2ff6a
Add py37-nightly to travis
2017-01-22 17:20:15 -07:00
Victor Uriarte
839aa963a1
Add py36 identifier
...
and order AUTHORS
2017-01-22 17:13:17 -07:00
Ronny Pfannschmidt
400b0779f9
Merge pull request #2213 from RonnyPfannschmidt/release-3.0.6
...
Release 3.0.6
2017-01-22 22:21:53 +01:00
Ronny Pfannschmidt
c9f327dc87
bump version to next dev
2017-01-22 22:21:08 +01:00
Ronny Pfannschmidt
0e64cd045c
take off author_email after pypi rejects
2017-01-22 22:14:54 +01:00
Ronny Pfannschmidt
22da561ae5
fix copy+paste error, its supposed to be 3.0.6
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
449b88c640
rerun regendoc with correct install
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
34b898b47e
generate the release announcement
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
01eaf9db51
fix the xfail docstring typo at the actual docstring + regendoc
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
4d0c635252
regendoc
2017-01-22 18:44:30 +01:00
Ronny Pfannschmidt
55f21bd2b9
bump version
2017-01-22 18:44:30 +01:00
Bruno Oliveira
c39d846c1b
Merge pull request #2215 from RonnyPfannschmidt/fix-doctesting/devpi-bug
...
fix devpi test for doctesting env
2017-01-22 13:02:03 -02:00
Ronny Pfannschmidt
403122281a
fix devpi test for doctesting env
...
due to a devpi bug, we always get a sdist install which in turn triggers
the pytest issue #2042 / #726
going for pyargs and a changed folder, it should no longer happen
(and will be tested firther after rebasing the release branch)
2017-01-22 11:48:05 +01:00
Ravi Chandra
0e58c3fa80
updates for PR review #2198
2017-01-21 16:47:49 +13:00
Ravi Chandra
c848d0a771
Pass parameter name to make_parametrize_id hook function
2017-01-21 16:46:45 +13:00
Bruno Oliveira
15a3b57ec7
Merge pull request #2120 from RonnyPfannschmidt/fix-2118
...
fix #2118 - rework Node._getcustomclass and Node compat properties
2017-01-20 14:38:55 -02:00
Ronny Pfannschmidt
6a96b464ab
update changelog as suggested
2017-01-20 15:26:59 +01:00
Ronny Pfannschmidt
7b4afd8946
remove unused import
2017-01-20 12:09:49 +01:00
Ronny Pfannschmidt
1a2d6388ac
Merge pull request #2211 from nicoddemus/trial-envs
...
Fix pytester internal plugin to work correctly with latest versions of zope.interface
2017-01-20 12:08:12 +01:00
Bruno Oliveira
3766060893
Merge branch 'master' into trial-envs
2017-01-20 08:37:34 -02:00
Ronny Pfannschmidt
4082f4024a
comment out compatproperty deprecations
...
todo: reenable in the features branch
2017-01-20 11:25:48 +01:00
Ronny Pfannschmidt
e0c48b4fe7
Merge pull request #2212 from nicoddemus/pytester-rewrite
...
Assert statements of the pytester plugin again benefit from assertion rewriting
fixes #1920
2017-01-20 10:04:12 +01:00
Bruno Oliveira
7b4368f3f4
Merge pull request #2184 from eli-b/parseoutcomes-explicit-failure
...
Fail assert_outcomes() on missing terminal report
2017-01-19 21:38:54 -02:00
Bruno Oliveira
88f7befabb
Merge pull request #2209 from RonnyPfannschmidt/bugfix-2208/get_real_func_loop_limit
...
fixes #2208 by introducing a iteration limit
2017-01-19 21:35:47 -02:00
Bruno Oliveira
c477f09177
Assert statements of the pytester plugin again benefit from assertion rewriting
...
Fix #1920
2017-01-19 21:33:51 -02:00
Bruno Oliveira
2574da8d32
Fix pytester internal plugin to work correctly with latest versions of zope.interface
...
Fix #1989
2017-01-19 20:53:35 -02:00
Ronny Pfannschmidt
250597d468
get_real_func: use saferepr when formatting the error message
2017-01-19 13:05:58 +01:00
Ronny Pfannschmidt
123289a88e
fixes #2208 by introducing a iteration limit
2017-01-19 11:38:15 +01:00
Ronny Pfannschmidt
d15724f74f
Merge pull request #2204 from nicoddemus/linux-marker-doc
...
Fix marker example on "linux" platform
2017-01-18 09:34:34 +01:00
Bruno Oliveira
61fa91f3d0
Fix marker example on "linux" platform
...
I cheated a little and updated the example output by hand. 😁
Fix #2200
2017-01-17 21:09:04 -02:00
Ronny Pfannschmidt
125e89b7f8
Merge pull request #2194 from rjprins/remove-reinterp-from-docs
...
Remove mention of --assert=reinterp in documentation
2017-01-14 14:58:50 +01:00
Rutger Prins
46a9861d29
Remove mention of --assert=reinterp in documentation
...
Related to #1940
2017-01-13 22:35:37 +01:00
Bruno Oliveira
3dfdbaf490
Merge pull request #2186 from nicoddemus/pytest-plugins-env-rewrite
...
Consider plugins loaded by PYTEST_PLUGINS for assertion rewrite
2017-01-12 23:29:58 -02:00
Bruno Oliveira
7cd7c283dd
Refactor plugin specs handling into an isolated function
2017-01-12 14:31:35 -02:00
Bruno Oliveira
043aadeaf2
Consider plugins loaded by PYTEST_PLUGINS for assertion rewrite
...
Fix #2185
2017-01-11 17:15:16 -02:00
Eli Boyarski
e18b2a427a
Fail assert_outcomes() on missing terminal report
...
Currently if the terminal report of testdir.runpytest() is missing,
assert_outcomes() on its output fails because parseoutcomes()
returns an unexpected value (None).
It's better to fail parseoutcomes() directly.
2017-01-11 17:09:37 +02:00
Ronny Pfannschmidt
ff309b3584
Merge pull request #2182 from pombredanne/patch-1
...
Ensure the LICENSE is included in built wheels
2017-01-10 21:44:43 +01:00
Philippe Ombredanne
aa82db9fe2
Ensure the LICENSE is included in built wheels
...
Otherwise it is not included by default as wheels do not honor the MANIFEST.in
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com >
2017-01-10 19:25:57 +01:00
Ronny Pfannschmidt
6c011f43e9
Merge pull request #2179 from mandeep/new-style-classes
...
Refactored old style classes to new style classes
2017-01-10 16:08:24 +01:00
mandeep
e412ea1d5a
Added name to AUTHORS and change to CHANGELOG
2017-01-10 07:58:22 -06:00
mandeep
d4afa1554b
Refactored old style classes to new style classes
2017-01-08 22:52:42 -06:00
Bruno Oliveira
64cb67b703
Merge pull request #2174 from nicoddemus/appveyor-py36
...
Test py36 on AppVeyor
2017-01-05 22:35:20 -02:00
Bruno Oliveira
7559400183
Add py36 to test on AppVeyor
...
Fix #2134
2017-01-05 19:18:03 -02:00
Bruno Oliveira
9477f598d8
Merge pull request #2173 from jeffwidman/patch-1
...
Switch monkeypatch fixture to yield syntax
2017-01-04 23:17:30 -02:00
Jeff Widman
6d81c684cc
Switch monkeypatch fixture to yield syntax
2017-01-04 15:06:52 -08:00
Loïc Estève
3494dd06fe
Remove duplicate target in rst
2017-01-03 10:57:19 -02:00
Loïc Estève
9e9547a9e4
Simplify condition
2017-01-03 10:57:19 -02:00
Loïc Estève
7930a8373d
Newline for flake8
2017-01-03 10:57:19 -02:00
Loïc Estève
0bd8159b60
Add a test when multiple classes are specified in warns
2017-01-03 10:57:19 -02:00
Bruno Oliveira
56d1858ea2
Remove duplicate '@lesteve' link from CHANGELOG
2017-01-03 10:57:19 -02:00
Loïc Estève
6fd0394c63
pytest.warns checks for subclass relationship
...
rather than class equality. This makes it more similar to
pytest.raises.
2017-01-03 10:57:19 -02:00
Ronny Pfannschmidt
8f1450114f
Merge pull request #2167 from fogo/parametrize-ids-silent-failure
...
No longer silently ignore errors in parametrize callable ids
2017-01-03 09:17:54 +01:00
Bruno Oliveira
b769e41d8f
Merge pull request #2170 from gogoengie/broken-links
...
Fix broken links
2017-01-02 21:57:17 -02:00
Peter Heatwole
ef903460b1
Fix broken links
2017-01-02 14:19:49 -08:00
Barney Gale
df409a0c0e
Fix CHANGELOG.rst
2017-01-02 22:01:40 +00:00
Barney Gale
8db9915374
Update AUTHORS, CHANGELOG
2017-01-02 22:01:04 +00:00
Barney Gale
3d18c9c1c6
'xfail' markers without a condition no longer rely on the underlying Item
...
deriving from `PyobjMixin`
2017-01-02 22:01:04 +00:00
Rafael Bertoldi
a9193a1531
No longer silently ignore errors in parametrize callable ids
2017-01-02 17:26:17 -02:00
Bruno Oliveira
78f03888f4
Merge pull request #2168 from jwilk/spelling
...
Fix typos
2017-01-01 20:08:08 -02:00
Jakub Wilk
03a7a2cd3e
Fix typos
2016-12-31 19:01:15 +01:00
Bruno Oliveira
964ccb93bb
Merge pull request #2163 from nicoddemus/merge-master-into-features
...
Merge master into features
2016-12-28 22:21:06 -02:00
Bruno Oliveira
402fbe503a
Merge branch 'master' into merge-master-into-features
2016-12-27 23:31:26 -02:00
Bruno Oliveira
7592c5b491
Sort issues and user references in CHANGELOG
2016-12-27 23:20:34 -02:00
Bruno Oliveira
091148f843
Merge pull request #2136 from hroncok/i2132
...
Tests: Check for ModuleNotFoundError on Python 3.6+
2016-12-27 23:10:58 -02:00
Bruno Oliveira
718f0b0255
Merge pull request #2130 from malinoff/fix-2129
...
Use inspect to properly detect generators. Fixes #2129
2016-12-27 22:11:46 -02:00
Bruno Oliveira
b4295aa19e
Merge pull request #2144 from sscherfke/patch-1
...
Explicitly add setuptools to install_requires
2016-12-27 22:08:39 -02:00
Bruno Oliveira
7d259401cd
Merge pull request #2161 from nicoddemus/silence-trial-on-ci
...
Allow trial environments to fail on CI for now
2016-12-27 22:04:50 -02:00
Bruno Oliveira
515fb09995
Move module error compatibility code to _pytest.compat
2016-12-27 22:01:22 -02:00
Bruno Oliveira
088b742d40
Merge pull request #2149 from pelme/issue2148
...
Fix handling of ini configuration in subdirs when specifying ::
2016-12-27 21:54:14 -02:00
Miro Hrončok
6b24ce2a9d
Test Python 3.6 on Travis CI
...
Partial fix for https://github.com/pytest-dev/pytest/issues/2134
2016-12-27 23:16:25 +01:00
Miro Hrončok
1680eeb3a3
Tests: Check for ModuleNotFoundError on Python 3.6+
...
Those tests originally checked for ImportError. Since Python 3.6
ModuleNotFoundError is raised in this context instead, the tests didn't work
as they are text based (so exception inheritance does not save the day).
Fixes https://github.com/pytest-dev/pytest/issues/2132
2016-12-27 23:15:12 +01:00
Andreas Pelme
0bb8a4a36d
Fixed #2148 - parse directory names properly when args contains ::.
...
This commit also improves readbility in get_dirs_from_args by using self
documenting local functions.
get_dirs_from_args also now only returns directories that actually exists,
and not files to avoid confusion.
This commit also removes redundant checks in get_common_ancestor that
was already performed in get_dirs_from_args..
2016-12-27 15:28:56 +01:00
Bruno Oliveira
f7a1d369c3
Allow trial environments to fail on CI for now
...
While I agree this is *far* from ideal, IMHO It is better to ignore them for now otherwise we hamper contributors with unrelated errors.
We should fix this before the next release.
#1989
2016-12-26 21:47:50 -02:00
Bruno Oliveira
316406291d
Merge pull request #2150 from lesteve/add-caught-warnings-info-when-warns-fail
...
Improve error message when pytest.warns fail
2016-12-26 21:42:15 -02:00
Bruno Oliveira
a27c824fd0
Merge pull request #2146 from lwm/minor-docs-fixup
...
Fix fixture/parametrize override example.
2016-12-26 20:13:00 -02:00
Bruno Oliveira
fc74eb332b
Merge pull request #2128 from nicoddemus/pytest-m
...
Mention that Python also adds CWD to sys.path using python -m
2016-12-26 20:11:59 -02:00
Loïc Estève
bfada968d3
Update AUTHORS and CHANGELOG.rst
...
following contribution guidelines
2016-12-20 14:36:10 +01:00
Loïc Estève
c5f0b751f4
Improve error message when pytest.warns fail
...
The error message contains the expected type of warnings and the
warnings that were captured. Add tests.
2016-12-20 13:45:39 +01:00
Dmitry Malinovsky
a63b34c685
Switch to item fspath
2016-12-20 10:44:09 +06:00
Luke Murphy
f94189b48b
Fix wrong fixture name. Closes #2143 .
2016-12-20 01:48:32 +01:00
Stefan Scherfke
3f5edc705a
Explicitly add setuptools to install_requires
...
Setuptools is used in `_pytest/config.py` but was not explicitly listed as requirement. This led to an error when creating a Conda package for pytest since setuptools is not necessarily installed by default in Conda envs.
2016-12-19 13:22:25 +01:00
Bruno Oliveira
caee5ce489
Avoid importing asyncio directly because that in turn initializes logging ( #8 )
2016-12-13 21:54:20 -02:00
Bruno Oliveira
1312b83866
Add CHANGELOG entry for #2129
2016-12-13 21:33:01 -02:00
Bruno Oliveira
45eb9b566c
Move compat tests to a single file using testdir
...
This avoids having to resort to skipping modules in conftest.py file and avoids flake8 errors
2016-12-13 21:28:07 -02:00
Dmitry Malinovsky
3a59acf69f
Use inspect to properly detect generators. Fixes #2129
2016-12-11 21:59:11 +06:00
Bruno Oliveira
81c9bdcd0b
Mention that Python also adds CWD to sys.path using python -m
2016-12-10 16:55:04 -02:00
Dmitry Malinovsky
522d59e844
Use session.config.hook instead of ihook. Fixes #2124
2016-12-10 16:45:40 +06:00
Bruno Oliveira
da40bcf97f
Merge pull request #2119 from nicoddemus/changelog-dates
...
Add release dates to CHANGELOG entries
2016-12-08 19:49:22 -02:00
Bruno Oliveira
a4a30ae4a2
Merge pull request #2123 from oscarh/documentation-issue-687
...
Also update yield teardown for Issue #687
2016-12-07 12:46:43 -02:00
Oscar Hellström
f42a954cb3
Also update yield teardown for Issue #687
2016-12-07 15:08:38 +01:00
Ronny Pfannschmidt
9c285dfc1d
fix #2118 - rework Node._getcustomclass and Node compat properties
2016-12-06 09:13:25 +01:00
Bruno Oliveira
8afca5d0fa
Add release dates to CHANGELOG entry
...
Fix #721
2016-12-05 17:21:01 -02:00
Bruno Oliveira
3a0a1d2de3
Bump version to 3.0.6.dev0
2016-12-05 12:51:00 -02:00
Bruno Oliveira
6a52afc8c9
Merge pull request #2116 from nicoddemus/release-3.0.5
...
Release 3.0.5
2016-12-05 12:42:32 -02:00
Bruno Oliveira
669332b7e0
Merge pull request #2101 from wheerd/doctest-encoding
...
Added doctest encoding command line option
2016-11-30 17:43:42 -02:00
Florian Bruhin
9c224c94f0
Merge pull request #2099 from lwm/fixup-2007
...
Add missing `__test__` check for discovery
2016-11-30 20:23:40 +01:00
Wheerd
2edfc805af
Added "versionadded" for doctest_encoding ini option to docs.
2016-11-30 18:01:00 +01:00
Luke Murphy
f5afd8cb54
Add missing __test__ check for test discovery.
2016-11-30 17:05:42 +01:00
Manuel Krebber
f8fef07b4c
Fixed the tests for python 2.6
2016-11-30 14:19:07 +01:00
Manuel Krebber
b7fb9fac91
Fixed the documentation for doctest_encoding.
2016-11-30 14:17:54 +01:00
Manuel Krebber
1f62e5b5a0
Added CHANGELOG entry and myself to AUTHORS.
2016-11-30 11:50:11 +01:00
Manuel Krebber
c043bbb854
Changed the doctest_encoding option to an ini option.
...
Parametrized the tests for it.
2016-11-30 11:43:33 +01:00
Manuel Krebber
929912de29
Changed the tests to pass on python 2 as well.
2016-11-29 14:51:17 +01:00
Manuel Krebber
d254c6b0ae
Added some tests for --docstring-encoding option. Added option to specify encoding for internal testdir._makefile() for the tests.
2016-11-29 12:29:16 +01:00
Manuel Krebber
ed977513ec
Added a console option to specify the encoding to use for doctest files. Defaults to UTF-8.
2016-11-29 12:29:14 +01:00
Ronny Pfannschmidt
36eb5b36d1
Merge pull request #2096 from nicoddemus/merge-master-into-features
...
Merge master into features
2016-11-27 20:50:08 +01:00
Bruno Oliveira
b30a6d22c5
Merge branch 'master' into merge-master-into-features
2016-11-27 17:30:40 -02:00
Bruno Oliveira
bd343ef757
Merge remote-tracking branch 'upstream/features' into integrate-pytest-warnings
2016-11-22 14:35:39 -02:00
Bruno Oliveira
5ce551e469
Merge pull request #2075 from pytest-dev/master
...
Merge master into features after fixing flake8 errors
2016-11-22 14:10:31 -02:00
Bruno Oliveira
26ca5a702e
Add tests and integrated the original code into the core
2016-11-21 08:26:43 -02:00
Bruno Oliveira
1da1906483
Rename code to _pytest.warnings and delete old files from the repository
2016-11-21 07:38:12 -02:00
Bruno Oliveira
9db32aea48
Merge c:\pytest-warnings\ into integrate-pytest-warnings
2016-11-21 07:34:24 -02:00
Bruno Oliveira
e31421a5d2
Moving all stuff to a subdirectory to try to retain history
2016-11-21 07:27:26 -02:00
Floris Bruynooghe
4c62cd451a
Add section about how you become a committer
2016-11-17 21:25:22 +00:00
Floris Bruynooghe
75740337d1
Merge pull request #2060 from pytest-dev/master
...
Merge master into features due to recent CI updates
2016-11-13 18:18:38 -08:00
Bruno Oliveira
6876ba9ba6
Merge pull request #1995 from mattduck/feat/restructure-assert-truncation
...
Restructure truncation of assertion messages
2016-11-13 19:07:35 -02:00
Ronny Pfannschmidt
0fab78ee8f
Merge pull request #2054 from nicoddemus/merge-master-features
...
Merge master into features after 3.0.4 release
2016-11-11 22:39:13 +01:00
Bruno Oliveira
efc54b2e56
Merge branch 'master' into merge-master-features
2016-11-11 18:56:53 -02:00
Bruno Oliveira
d49e9e5562
Merge pull request #2014 from RonnyPfannschmidt/warning-record-namedtuple
...
turn RecordedWarning into a namedtuple
2016-11-01 19:24:44 -02:00
Ronny Pfannschmidt
b3c337db00
add changelog entry and documentation note about RecordedWarning
2016-10-24 15:28:35 +02:00
Ronny Pfannschmidt
e9668d75b8
turn RecordedWarning into a namedtuple
...
fixes #2013
2016-10-24 15:23:53 +02:00
Ronny Pfannschmidt
377e649e61
local merge of #1967 - Change exception raised by capture.DontReadFromInput.fileno()
2016-10-24 12:47:55 +02:00
Florian Schulze
6ec0c3f369
Bump.
2016-10-24 12:10:49 +02:00
Florian Schulze
ce138060ac
Prepare pytest-warnings 0.2.0.
2016-10-24 12:09:49 +02:00
Florian Schulze
f229b573fa
Bump version, add changelog entry and move stuff around for added coverage reporting.
2016-10-24 12:08:21 +02:00
Florian Schulze
28621b0510
Merge pull request #2 from Carreau/filter-regex
...
Add a warning option which does not escape its arguments.
2016-10-24 11:51:15 +02:00
Matthias Bussonnier
bc94a51a96
Add a warning option which does not escape its arguments.
...
This is useful when to use regular expressions, like for example ignore
a bunch of dynamic messages
--filterwarnigns 'ignore:Please use assert.* instead.:'
Or ignore all the warnings in a sub-backage
--filterwarnigns 'ignore:::package.submodule.*'
This is also available in the ini file as the filterwarnigns options
2016-10-22 09:58:13 -07:00
Bruno Oliveira
9d00615bbf
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2016-10-20 21:51:42 -02:00
Matthew Duck
acee88a118
Fix truncation tests: pyruntest() match
...
Fix issue with truncation tests for -vv and CI, where the test for
non-truncated output would return a positive match even on truncated output.
2016-10-16 20:54:51 +01:00
Matthew Duck
0061d9bd3d
Fix flake8 (unused import, trailng whitespace)
2016-10-11 00:17:15 +01:00
Matthew Duck
b629da424e
Restructure truncation of assertion messages
...
This addresses ref https://github.com/pytest-dev/pytest/issues/1954 .
The current truncation for assertion explanations does not deal with long lines
properly:
- Previously if lines were too long it would display a "-n more lines"
message.
- 999e7c6541 introduced a bug where long lines can
cause index errors if there are < 10 lines.
Extract the truncation logic into its own file and ensure it can deal with
long lines properly.
2016-10-10 23:38:27 +01:00
Bruno Oliveira
4667b4decc
Merge branch 'master' into features
2016-09-29 19:03:26 -03:00
Skylar Downes
b0c78c867d
Update CHANGELOG.rst
2016-09-27 15:50:45 -07:00
Skylar Downes
3d211da9bd
add existing test suite page to table of contents
2016-09-27 14:01:54 -07:00
Skylar Downes
1ab1962eb1
make issue #1934 reference a link
2016-09-27 13:53:31 -07:00
Skylar Downes
12ac3c7338
remove existing tests stuff, add link to new page
...
Moved the "Contributing tests to an existing project" section to it's own page.
2016-09-27 13:08:15 -07:00
Skylar Downes
7e2f66adc3
Create existingtestsuite.rst
2016-09-27 12:51:46 -07:00
Bruno Oliveira
654af0ba25
Merge remote-tracking branch 'upstream/master' into features
2016-09-26 19:32:53 -03:00
Vlad Dragos
acac78adc0
Add link to profile.
2016-09-26 16:09:25 +03:00
Vlad Dragos
3444796f3e
Fix formating error.
2016-09-26 13:59:28 +03:00
Vlad Dragos
ff492ca73f
Thanked my self in the change log :)
2016-09-26 13:27:41 +03:00
Vlad Dragos
8985c0be3e
Change exception raised by DontReadFromInput.fileno() from ValueError to io.UnsupportedOperation
2016-09-26 13:15:35 +03:00
Bruno Oliveira
3fce78498f
Mention #1952 on the CHANGELOG
...
Also created "New Features" and "Changes" sections.
2016-09-25 20:31:03 -03:00
Bruno Oliveira
5e96edd435
Merge pull request #1952 from davidszotten/pdbcls_without_pdb_on_fail
...
Pdbcls without pdb on fail
2016-09-25 20:24:45 -03:00
David Szotten
d75748ef6f
test for calling set_trace with custom pdb cls
2016-09-21 09:45:26 +00:00
David Szotten
c7b4b8cf6f
test
2016-09-21 09:45:23 +00:00
David Szotten
0ac85218d1
allow pdbcls without implying usepdb
2016-09-21 09:45:20 +00:00
Floris Bruynooghe
887c097f8e
Merge pull request #1951 from mattduck/feat/1512-dict-compare-output
...
Feat/1512 dict compare output
2016-09-19 17:34:09 +01:00
Floris Bruynooghe
01db0f1cd1
Merge pull request #1923 from RonnyPfannschmidt/mark-internal-value
...
use consistent inner repressentation for marks
2016-09-19 15:30:22 +01:00
Matthew Duck
4df74a5cfb
Add AUTHORS and CHANGELOG for #1512
2016-09-19 15:29:37 +01:00
Matthew Duck
999e7c6541
Tidy formatting of assertion truncation
...
Part two of https://github.com/pytest-dev/pytest/issues/1512 . Update the format
of the truncation message to help make it clear that pytest truncates the
entire assertion output when verbosity < 2.
2016-09-19 15:27:38 +01:00
Matthew Duck
dd64d823b9
Don't display dict common items if verbosity=1
...
Part one of https://github.com/pytest-dev/pytest/issues/1512 .
If verbosity=1, assertion explanations are truncated at 10 lines. In this
situation, it's more important to tell the user which dictionary items are
different than which are the same.
2016-09-19 15:27:28 +01:00
Floris Bruynooghe
dc16fe2bb9
Merge junit-xml url attribute branch
...
Merge branch 'url_attr' of https://github.com/fushi/pytest into junitxml-url
2016-09-19 12:57:05 +01:00
Floris Bruynooghe
5b260d80f9
Merge pull request #1883 from RonnyPfannschmidt/kill-memoized-call
...
Kill memoized call
2016-09-19 12:47:52 +01:00
Skylar Downes
34117be98b
Update goodpractices.rst
2016-09-15 16:45:35 -07:00
Skylar Downes
330a2f6784
Update getting-started.rst
2016-09-15 16:28:37 -07:00
Skylar Downes
f1faaea3fd
Update CHANGELOG.rst
2016-09-15 15:22:53 -07:00
Skylar Downes
d781b76627
Update AUTHORS
2016-09-15 15:20:47 -07:00
Skylar Downes
81a733f2dc
add how-to for getting started on existing project
...
ref #1937
2016-09-15 15:09:47 -07:00
Skylar Downes
07ad71e851
clarified purpose of pip install -e command
...
ref #1937
2016-09-15 14:55:54 -07:00
Skylar Downes
b4fd74c6ff
add mention of setup.py develop
2016-09-15 14:10:57 -07:00
Skylar Downes
69f72c6f4b
fix typo
2016-09-15 10:49:59 -07:00
Skylar Downes
383fc02ba6
fix spacing
2016-09-15 10:47:16 -07:00
Skylar Downes
d217984129
documenting how to point pytest at local code
...
Related to #1937
2016-09-15 10:46:15 -07:00
Ronny Pfannschmidt
45524241a5
mark: fix introduced linting error
2016-09-08 10:16:45 +02:00
Ronny Pfannschmidt
1812387bf0
Mark: fix python 3 compatibility
2016-09-08 10:03:45 +02:00
Ronny Pfannschmidt
10094a3f09
use consistent inner repressentation for marks
2016-09-08 09:52:22 +02:00
Ronny Pfannschmidt
1c9bd9278e
Merge pull request #1913 from flub/builtin-assertion
...
Remove BuiltinAssertionError
2016-09-05 16:53:13 +02:00
Floris Bruynooghe
28b1896e9a
Remove BuiltinAssertionError
...
We used to have this when we where patching the real Python
AssertionError for use with reinterpret, but reinterpret is now
gone so we no longer need this as it is not used by rewrite.
2016-09-05 15:29:09 +02:00
Ronny Pfannschmidt
e1674f60e7
remove memocollect anmd memoized_call
2016-09-05 14:41:28 +02:00
Ronny Pfannschmidt
e572c16d3f
remove memoizedcall in Module
2016-09-05 14:41:28 +02:00
Florian Bruhin
98ac1dd34b
Merge pull request #1902 from nicoddemus/features
...
Merge master into features after 3.0.2
2016-09-02 06:35:44 +02:00
Bruno Oliveira
f5d900d972
Merge remote-tracking branch 'upstream/master' into features
2016-09-01 23:07:49 -03:00
Bruno Oliveira
9d2149d9c0
Merge pull request #1884 from pytest-dev/master
...
merge master into features
2016-08-30 18:47:57 -03:00
John Towler
1b259f70f3
Testcase reports with a url attribute will now properly write this to junitxml
2016-08-25 13:08:51 -07:00
Bruno Oliveira
c5675d3efc
Remove merge-conflict marker merged by accident
...
Unfortunately rst-lint didn't catch that
2016-08-23 23:43:05 -03:00
Bruno Oliveira
6359894fe4
Merge pull request #1859 from nicoddemus/merge-master-into-features
...
Merge master into features
2016-08-23 23:39:01 -03:00
Bruno Oliveira
7704f73db9
Merge branch 'master' into merge-master-into-features
2016-08-23 21:36:42 -03:00
Bruno Oliveira
db922403cc
Bump version to 3.1.0.dev
2016-08-19 17:44:07 -03:00
Florian Schulze
bc5a8c761e
Fix version in readme.
2016-06-27 11:33:36 +02:00
Florian Schulze
3feee0c483
Prepare 0.1 release.
2016-06-27 11:32:54 +02:00
Florian Schulze
b9c4ecf5a8
Add MANIFEST.in.
2016-06-27 11:32:38 +02:00
Florian Schulze
6b135c83be
Initial commit.
2016-06-22 12:21:51 +02:00