Bruno Oliveira
63f90a2bcd
Merge pull request #4438 from RonnyPfannschmidt/fix-4386-raises-partial-object
...
fix #4386 - restructure construction and partial state of ExceptionInfo
2018-11-23 12:41:14 -02:00
Bruno Oliveira
f987b368e8
Merge pull request #3776 from alysivji/attrs-n-dataclasses
...
Detailed assert failure introspection for attrs and dataclasses objects
2018-11-22 21:25:35 -02:00
Bruno Oliveira
2eaf3db6ae
Fix docstring indentation (docs env)
2018-11-22 20:21:22 -02:00
Ronny Pfannschmidt
88bf01a31e
fix #4386 - restructure construction and partial state of ExceptionInfo
2018-11-22 21:20:32 +01:00
Ronny Pfannschmidt
d894bf4535
Merge pull request #4407 from blueyed/sys-dunder
...
capture: do not overwrite `sys.__stdin__` etc
2018-11-22 07:26:06 +01:00
Daniel Hahler
9ed63c607e
capture: do not overwrite `sys.__stdin__` etc
...
Ref: https://github.com/pytest-dev/pytest/pull/4398#discussion_r234333053
2018-11-20 16:50:15 +01:00
Bruno Oliveira
d52ea4b6cf
Use python 3 in 'doctesting' environment
...
We some examples now use type annotations
2018-11-19 20:06:06 -02:00
Ronny Pfannschmidt
0ffb8ddd7f
Merge pull request #4418 from asottile/printable_ids
...
Ensure that node ids are printable
2018-11-19 21:40:07 +01:00
Anthony Sottile
95c6d591f7
Properly escape \r \n \t bytes
2018-11-19 11:03:52 -08:00
Anthony Sottile
9a1e518cc3
Add changelog entry for printable node ids
2018-11-19 11:03:52 -08:00
Anthony Sottile
9ca0ab6e2b
Ensure printable manually-specified param(id=...)
2018-11-19 11:03:52 -08:00
Anthony Sottile
8395b9e25d
Require id=... to be a string
...
This was documented before, but never enforced. Passing non-strings could
have strange side-effects and enforcing a string simplifies other
implementation.
2018-11-19 11:03:52 -08:00
Anthony Sottile
3d92d5a659
Make sure parametrize ids are printable
2018-11-19 11:03:52 -08:00
Anthony Sottile
50e3783f07
Merge pull request #4421 from RonnyPfannschmidt/remove-pytest-namespace
...
remove pytest namespace hook
2018-11-19 09:35:33 -08:00
Daniel Hahler
6e85febf20
Merge pull request #4420 from blueyed/merge-master
...
Merge master into features
2018-11-19 14:53:01 +01:00
Ronny Pfannschmidt
ba17363d75
remove pytest namespace hook
2018-11-19 14:04:41 +01:00
Daniel Hahler
2754a13f86
Merge master into features
2018-11-19 12:55:29 +01:00
Anthony Sottile
a281d6620b
Merge pull request #4417 from blueyed/tox-mock
...
tox.ini: remove additionally missed mock deps
2018-11-18 12:06:59 -08:00
Daniel Hahler
c56cc93cbd
tox.ini: remove additionally missed mock deps
...
Ref: https://github.com/pytest-dev/pytest/pull/4415#discussion_r234452144
2018-11-18 19:37:04 +01:00
Daniel Hahler
cdbe2299ec
Merge pull request #4409 from blueyed/str
...
Add Testdir.__str__ to return str(self.tmpdir)
2018-11-18 12:52:31 +01:00
Daniel Hahler
62967b3110
Merge pull request #4367 from blueyed/determine_setup
...
Optimize/revisit determine_setup
2018-11-18 12:52:07 +01:00
Ronny Pfannschmidt
5c24430555
Merge pull request #4415 from blueyed/extras-testing
...
setup.py: add "testing" extra requirement
2018-11-18 12:16:06 +01:00
Daniel Hahler
e46f995cc7
setup.py: add "testing" extra requirement
...
Use this in tox to stream-line base testing requirements.
Closes https://github.com/pytest-dev/pytest/issues/4410 .
2018-11-18 08:55:17 +01:00
Anthony Sottile
10cdae8e38
Merge pull request #4414 from asottile/starred_with_side_effect
...
Fix assertion rewriting involving Starred + side-effects
2018-11-17 16:17:24 -08:00
Daniel Hahler
5fab0ca312
Merge pull request #4403 from RonnyPfannschmidt/fix-4400
...
Fix #4400 - rearrange the handling of yield test warnings/errors
2018-11-18 00:57:44 +01:00
Daniel Hahler
7f990e2b9a
Merge pull request #4408 from blueyed/default-invalid-escape-sequence
...
tox.ini: do not cause SyntaxWarning with py37 [ci skip]
2018-11-17 20:08:37 +01:00
Anthony Sottile
690a63b921
Fix assertion rewriting involving Starred + side-effects
2018-11-17 10:42:51 -08:00
Daniel Hahler
4c9cde74ab
Merge pull request #4411 from blueyed/fix-testpaths-with-pyargs
...
Fix collection of testpaths with `--pyargs`.
2018-11-17 17:20:29 +01:00
Ronny Pfannschmidt
94e5bdd4e0
Merge pull request #4413 from blueyed/tox-posargs
...
tox: fix/improve posargs with pexpect factor(s) [ci skip]
2018-11-17 17:18:31 +01:00
Daniel Hahler
cb1d4044e6
tox: fix/improve posargs with pexpect factor(s) [ci skip]
2018-11-17 15:35:40 +01:00
Daniel Hahler
a252e81ced
Fix collection of testpaths with `--pyargs`
...
Fixes https://github.com/pytest-dev/pytest/issues/4405 .
2018-11-17 13:28:10 +01:00
Daniel Hahler
3acfa3abdc
Add Testdir.__str__ to return str(self.tmpdir)
...
I just expected this with `monkeypatch.setenv("PYTHONPATH", str(testdir))`,
wondering why it was not picked up correctly.
`
2018-11-17 13:18:54 +01:00
Daniel Hahler
084c36d538
tox.ini: do not cause SyntaxWarning with py37 [ci skip]
...
Do not cause a SyntaxError for something like:
> DeprecationWarning: invalid escape sequence \w
This was happening via pdb++ when it imported pygments (and that had no
compiled .pyc file).
2018-11-17 11:53:15 +01:00
Ronny Pfannschmidt
950d30e6e0
fix #4400 - rearrange the handling of yield test warnings/errors
2018-11-16 13:49:46 +01:00
Ronny Pfannschmidt
5872e1c35a
Merge pull request #4392 from nicoddemus/merge-master-into-features
...
Merge master into features
2018-11-15 06:59:42 +01:00
Bruno Oliveira
9dec146edf
Merge pull request #4388 from nicoddemus/release-4.0.0
...
Release 4.0.0
2018-11-14 15:11:09 -02:00
Bruno Oliveira
c2d6b3524c
Preparing release version 4.0.0
2018-11-13 21:01:51 +00:00
Bruno Oliveira
e025974cbd
Merge remote-tracking branch 'upstream/master' into release-4.0.0
2018-11-13 20:58:24 +00:00
Bruno Oliveira
fea09cda6c
Merge pull request #4383 from nicoddemus/merge-master-into-features
...
Merge master into features (about to prepare 4.0)
2018-11-13 18:57:41 -02:00
Daniel Hahler
ba457f5feb
Optimize/revisit determine_setup
2018-11-13 20:14:24 +01:00
Daniel Hahler
ed91d5f086
config: set invocation_dir in the constructor already
...
This allows to make use of it when determining the rootdir etc.
2018-11-13 20:14:24 +01:00
Daniel Hahler
b7863a5f48
Merge pull request #4381 from blueyed/callinfo-repr
...
Fix CallInfo.__repr__ for unfinished call
2018-11-13 18:13:58 +01:00
Aly Sivji
b83e97802e
improve failure output
2018-11-13 09:37:02 -06:00
Daniel Hahler
a72eff5a08
Merge pull request #4382 from blueyed/pytester-pop-TOX_ENV_DIR
...
pytester: pop TOX_ENV_DIR from os.environ
2018-11-13 12:42:51 +01:00
Daniel Hahler
46c8363e12
Merge pull request #4380 from blueyed/improve-ci
...
Travis: move faster builds to baseline
2018-11-13 12:40:26 +01:00
Bruno Oliveira
557cb6cffe
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-11-13 09:01:37 -02:00
Bruno Oliveira
8198e7cd33
Merge pull request #4349 from nicoddemus/pytest4-warnings-as-errors
...
Change RemovedInPytest4Warnings to errors by default
2018-11-13 08:31:47 -02:00
Daniel Hahler
a6a96469ca
pytester: pop TOX_ENV_DIR from os.environ
...
Closes: https://github.com/pytest-dev/pytest/pull/4378
Fixes: https://github.com/pytest-dev/pytest/issues/4366
2018-11-13 09:02:52 +01:00
Daniel Hahler
27dab4e05f
Fix CallInfo.__repr__ for unfinished call
...
Fixes https://github.com/pytest-dev/pytest/issues/3554
Ref: https://github.com/pytest-dev/pytest/pull/3560
Ref: https://github.com/pytest-dev/pytest/pull/3562
2018-11-13 08:51:43 +01:00
Daniel Hahler
3e05848ab9
AppVeyor: run py{27,37}-xdist first
2018-11-13 01:33:05 +01:00