Ran Benita
90aaeebc8e
testing: python 3.10 fix
...
Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
2020-11-20 20:06:18 +01:00
Bruno Oliveira
049f5b513a
Make 'S' and 'F' aliases to 's' and 'f' respectively ( #6337 )
...
(cherry picked from commit ecd1e43afb
)
2020-06-03 22:33:59 +02:00
Bruno Oliveira
ded772b288
Merge pull request #6870 from fermezz/backport-invocation-args
2020-05-08 08:04:49 -03:00
Bruno Oliveira
2a5ca51fe8
[4.6] Merge pull request #7179 from asottile/py39
2020-05-07 23:22:29 +02:00
Fernando Mez
a6029ff2b7
BACKPORT: Introduction of Config.invocation_args
2020-03-26 16:41:08 -03:00
Bruno Oliveira
e49282f72c
Fix assertion rewriting module detection for egg dists
...
Fix #6301
2019-12-25 19:43:28 +08:00
Bruno Oliveira
8bfe434f75
Drop validation against multiple xmlfamilies
...
This was not backported to 4.6 before, so had to adapt the test slightly
to the old method of validation.
2019-12-12 16:44:07 -03:00
Bruno Oliveira
f9ebe3c607
Bugfix 5430 pass logs to junit report ( #6274 )
...
Bugfix 5430 pass logs to junit report
2019-12-12 16:39:19 -03:00
Bruno Oliveira
8b9482e39c
Add hostname and timestamp to JUnit XML testsuite tag ( #5692 )
...
Add hostname and timestamp to JUnit XML testsuite tag
Conflicts:
testing/test_junitxml.py
2019-12-10 17:27:22 -03:00
Bruno Oliveira
192f6992d2
Include <testsuites> root tag in generated XML ( #5550 )
...
Include <testsuites> root tag in generated XML
2019-11-30 11:30:43 -03:00
Daniel Hahler
097acaf11b
re-run black
2019-11-16 19:17:01 +01:00
Bruno Oliveira
0084fd9783
Review rm_rf handling of FileNotFoundErrors ( #6044 )
...
Review rm_rf handling of FileNotFoundErrors
Conflicts:
src/_pytest/pathlib.py
testing/test_tmpdir.py
2019-10-23 19:36:35 -03:00
Bruno Oliveira
b9a8465ce4
Replace importlib_metadata with importlib.metadata on Python 3.8+ ( #5539 )
2019-10-11 17:10:01 +02:00
Bruno Oliveira
c03e46f1ad
Fix warnings with attrs 19.2 and fix object assertions ( #5902 )
...
Fix warnings with attrs 19.2 and fix object assertions
2019-10-11 15:26:23 +02:00
Michael Goerz
914441557c
Fix "lexer" being used when uploading to bpaste.net
...
Closes #5806 .
2019-09-01 00:38:11 -04:00
Anthony Sottile
aa79b1c00c
[4.6] fixes for python4
2019-08-29 09:52:35 -07:00
Daniel Hahler
b71f873189
[4.6] Fix RuntimeError when trying to collect package with "__init__.py" only
...
Fixes https://github.com/pytest-dev/pytest/issues/4344 .
2019-08-05 18:22:23 +02:00
Bruno Oliveira
0274c08b8a
Handle only known functions in rm_rf ( #5627 )
...
Backport of #5627
Conflicts:
- src/_pytest/pathlib.py
Also had to adapt:
- PermissionError into OSError with appropriate
- Change keyword-only argument to **kwargs
- Remove type annotations
2019-08-03 10:29:17 -03:00
Bruno Oliveira
400393cfe4
Improve output when parsing an ini configuration fails ( #5650 )
...
Improve output when parsing an ini configuration fails
2019-07-23 11:18:16 -03:00
Anthony Sottile
f06ae5297b
Merge pull request #5636 from asottile/fixup_sysmodules_test
...
Fix ordering of sys modules snapshot
2019-07-20 12:31:22 -07:00
Bruno Oliveira
02c737fe4e
Fix rmtree to remove directories with read-only files ( #5588 )
...
Fix rmtree to remove directories with read-only files
2019-07-11 19:07:36 -03:00
Bruno Oliveira
acb62ba619
Fix test_stepwise::test_xfail_handling when byte code writing is disabled
2019-07-04 21:08:16 -03:00
Bruno Oliveira
df0cff18ac
Handle xfail(strict=True) properly in --step-wise mode ( #5555 )
...
Handle xfail(strict=True) properly in --step-wise mode
2019-07-04 20:51:59 -03:00
Bruno Oliveira
46a0888352
Fix pytest.raises handling of unicode exceptions in Python 2 ( #5479 )
...
Fix pytest.raises handling of unicode exceptions in Python 2
2019-07-04 10:25:56 -03:00
Bruno Oliveira
34b4e21606
Include two more cases for non-ascii encoded bytes
2019-07-04 09:34:55 -03:00
Bruno Oliveira
a886015bfd
Test various bytes <=> unicode cases as requested in review
2019-06-30 21:08:40 -03:00
Bruno Oliveira
09dee292ca
Use unicode message if regex is also unicode in ExceptionInfo.match
2019-06-30 10:43:46 -03:00
Anthony Sottile
f4b1c1184f
Merge pull request #5506 from asottile/fix_no_terminal
...
Fix crash when discovery fails while using `-p no:terminal`
2019-06-27 11:00:05 -07:00
Thomas Grainger
013d0e66c7
use safe_str to serialize Exceptions Fixes #5478
2019-06-26 11:11:54 +01:00
Bruno Oliveira
d5eed3bb9c
Pickup addition positional args passed to _parse_parametrize_ar… ( #5483 )
...
Pickup addition positional args passed to _parse_parametrize_args
2019-06-24 22:07:53 -03:00
Bruno Oliveira
4b104ba222
Merge pull request #5454 from nicoddemus/backport-5446
...
Backport 5446
2019-06-17 09:46:01 -03:00
Daniel Hahler
443af11861
Merge pull request #5404 from Zac-HD/helpful-mock-unwrapper
...
Emit warning for broken object
2019-06-17 14:48:40 +10:00
Bruno Oliveira
4e02248b84
Fix test docstring
2019-06-16 10:46:07 -03:00
Bruno Oliveira
43a499e6fa
Remove handling of collection errors by --sw
...
Since then pytest itself adopted the behavior of interrupting
the test session on collection errors, so --sw no longer needs
to handle this.
The --sw behavior seems have been implemented when pytest
would continue execution even if there were collection errors.
2019-06-16 10:46:07 -03:00
Bruno Oliveira
e2fa2b621c
Fix --sw crash when first file in cmdline fails to collect
...
Fix #5444
2019-06-16 10:46:07 -03:00
Thomas Grainger
0fc11b6f3c
add test for stepwise attribute error Refs: #5444
2019-06-16 10:46:07 -03:00
Bruno Oliveira
a93c50ccb9
Fix verbosity bug in --collect-only ( #5391 )
...
Fix verbosity bug in --collect-only
2019-06-05 20:50:21 -03:00
Daniel Hahler
1b7597ac91
[4.6] tests: restore tracing function
...
Without this, `testing/test_pdb.py` (already without pexpect) will cause
missing test coverage afterwards (for the same process).
2019-06-05 12:44:30 +02:00
Anthony Sottile
21680ffa77
Merge pull request #5401 from nicoddemus/backport-5389
...
[4.6] Backport #5389
2019-06-04 19:35:42 -07:00
Dirk Thomas
0ae27714d1
Backport of #5389 : fix for 'files' = None in broken metadata
2019-06-04 22:21:25 -03:00
Anthony Sottile
92432ac45c
Merge pull request #5393 from nicoddemus/unittest-self-5390
...
item.obj is again a bound method on TestCase function items
2019-06-04 17:49:53 -07:00
Anthony Sottile
12bf458719
Merge pull request #5373 from asottile/revert_all_handling
...
Revert unrolling of `all()`
2019-06-03 09:20:48 -07:00
Bruno Oliveira
f078984c2e
Fix all() unroll for non-generators/non-list comprehensions ( #5360 )
...
Fix all() unroll for non-generators/non-list comprehensions
2019-06-02 09:12:39 -07:00
Anthony Sottile
f7bf914108
Fix `pytest.mark.parametrize` when the argvalue is an iterator
2019-06-01 15:10:33 -07:00
Anthony Sottile
fb3ae5eaa9
Merge remote-tracking branch 'origin/master' into mm
2019-05-30 20:23:38 -07:00
Bruno Oliveira
c8d23c206b
logging: Improve formatting of multiline message ( #5312 )
...
logging: Improve formatting of multiline message
2019-05-30 21:42:41 -03:00
Victor Maryama
65bd1b8a93
Avoiding looking upwards for parameter argnames when generating fixtureinfo.
2019-05-30 23:42:04 +02:00
Daniel Hahler
ace3a02cd4
pytester: factor out testdir._env_run_update
2019-05-30 17:39:44 +02:00
Daniel Hahler
f013a5e8c1
pytester: use temporary HOME with spawn
...
Followup to https://github.com/pytest-dev/pytest/issues/4956 .
2019-05-30 17:39:44 +02:00
Bruno Oliveira
fbd8ff9502
Merge master into features ( #5339 )
...
Merge master into features
2019-05-30 12:21:51 -03:00