Kristoffer Nordstroem
9f86e83478
count selected tests
2019-01-21 23:56:39 +01:00
Anthony Sottile
f01f434311
Merge pull request #4657 from asottile/py_io_saferepr
...
copy saferepr from pylib
2019-01-21 13:25:02 -08:00
Anthony Sottile
0c6ca0da62
Fix usages of py.io.saferepr
2019-01-20 16:36:23 -08:00
Anthony Sottile
095ce2ca7f
Fix linting errors and py references in saferepr.py
2019-01-20 16:36:14 -08:00
Anthony Sottile
dbb6c18c44
copy saferepr from pylib verbatim
...
Copied from b9da2ed6178cd37d4ed6b41f9fa8234dce96973f
2019-01-20 16:30:31 -08:00
Anthony Sottile
653c685667
Merge pull request #4658 from asottile/py_deprecated_builtin
...
Remove and ban use of py.builtin
2019-01-20 14:29:00 -08:00
Anthony Sottile
ec5e279f93
Remove and ban use of py.builtin
2019-01-20 11:59:48 -08:00
Daniel Hahler
e69b1255d7
Improve quitting from pdb
...
Regarding tests: it merges ``test_pdb_interaction``,
``test_pdb_print_captured_stdout``, and
``test_pdb_print_captured_stderr`` into
``test_pdb_print_captured_stdout_and_stderr`` (clarity and performance,
especially since pexpect tests are slow).
2019-01-20 00:34:16 +01:00
Bruno Oliveira
57bf9d6740
Merge pull request #4654 from AuHau/fix/#4653-Fix_tmp_path_symlink_resolution
...
Fixes #4653 - tmp_path provides real path
2019-01-19 09:41:47 -02:00
Bruno Oliveira
677a7d06da
Merge pull request #4655 from RonnyPfannschmidt/fix-4649
...
fix #4649 - also transfer markers to keywordmapping
2019-01-19 09:40:03 -02:00
Ronny Pfannschmidt
f28b834426
fix #4649 - also transfer markers to keywordmapping
...
as it turns out it is distinct from nodekeywords and behaves completely different
2019-01-18 23:18:51 +01:00
Adam Uhlir
04bd147d46
Fixes #4653 - tmp_path provides real path
2019-01-18 12:54:00 -08:00
Bruno Oliveira
6154a5ac02
Merge pull request #4646 from nicoddemus/2.7-deprecation-docs
...
Add docs page about plans for dropping py27 and py34
2019-01-16 12:00:09 -02:00
Bruno Oliveira
1a04e8903a
Merge pull request #4537 from chdsbd/master
...
Bugfix: monkeypatch.delattr handles class descriptors
2019-01-16 08:09:59 -02:00
Joseph Hunkeler
85c5fa9f64
Update changelog
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
8967976443
Ensure xml object is viable before testing family type
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
bcacc40775
Update comment text
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
4ecf29380a
Adds xunit2 version of test_record_attribute
2019-01-14 22:58:41 -05:00
Joseph Hunkeler
aaa7d36bc9
Change family behavior:
...
* "legacy" is no longer a copy of "xunit1"
* Attempts to use "legacy" will redirect to "xunit1"
* record_xml_attribute is not compatible outside of legacy family
* Replace call to method/override raw() with to_xml()
2019-01-14 22:58:40 -05:00
Joseph Hunkeler
8937e39afd
Raise TypeError instead of NotImplementedError if not list type
2019-01-14 22:58:40 -05:00
Joseph Hunkeler
343430c537
Replace family "old" with "legacy"
2019-01-14 22:58:40 -05:00
Joseph Hunkeler
335cc5d651
Handle backwards-compatiblity
2019-01-14 22:58:40 -05:00
Joseph Hunkeler
2e551c32b6
Add junit_family config option
2019-01-14 22:58:40 -05:00
Joseph Hunkeler
af2ee1e80a
Emit JUnit compatible XML
...
* Remove non-standard testcase elements: 'file' and 'line'
* Replace testcase element 'skips' with 'skipped'
* Time resolution uses the standard format: 0.000
* Tests use corrected XML output with proper attributes
2019-01-14 22:58:40 -05:00
Bruno Oliveira
e2a9aaf24b
Add docs page about plans for dropping py27 and py34
...
Fix #4635
2019-01-14 22:10:15 -02:00
Anthony Sottile
4947eb85c0
Merge pull request #4645 from blueyed/merge-master-into-features
...
Merge master into features
2019-01-14 14:41:27 -08:00
Daniel Hahler
1a358df998
Merge master into features
2019-01-14 17:15:39 +01:00
Anthony Sottile
5903f4596a
Merge pull request #4643 from nicoddemus/asscalar-deprecated
...
Use a.item() instead of deprecated np.asscalar(a)
2019-01-14 07:36:13 -08:00
Anthony Sottile
5bb0be1e24
Merge pull request #4615 from asottile/some_dead_code
...
Remove some dead code
2019-01-14 07:35:21 -08:00
Bruno Oliveira
6504746652
Add CHANGELOG entry for #4643
2019-01-14 09:03:23 -02:00
Bruno Oliveira
42bb0b3904
Use a.item() instead of deprecated np.asscalar(a)
...
np.asscalar() has been deprecated in numpy 1.16:
https://github.com/numpy/numpy/blob/master/doc/release/1.16.0-notes.rst#new-deprecations
2019-01-14 08:59:09 -02:00
Bruno Oliveira
1bb463a980
Merge pull request #4642 from nicoddemus/rtd-bot-config
...
Add rtd-bot configuration file
2019-01-14 05:57:50 -02:00
Anthony Sottile
16546b7342
Remove some dead code
...
- I wrote a thing: https://github.com/asottile/dead
- wanted to try it out, there's lots of false positives and I didn't look
through all the things it pointed out but here's some
2019-01-13 20:41:30 -08:00
Bruno Oliveira
f2174c16cc
Add rtd-bot configuration file [skip appveyor] [skip travis]
...
Part of the configuration necessary for https://github.com/apps/rtd-helper
2019-01-13 20:38:19 -02:00
Bruno Oliveira
e48f68953d
Merge pull request #4638 from nicoddemus/release-4.1.1
...
Preparing release version 4.1.1
2019-01-12 12:51:32 -02:00
Bruno Oliveira
25081d8e30
Merge pull request #4570 from nicoddemus/sphinx-removed-in
...
Use sphinx removed in extension in the documentation
2019-01-12 08:34:29 -02:00
Bruno Oliveira
34eeda1c09
Preparing release version 4.1.1
2019-01-12 00:55:12 +00:00
Bruno Oliveira
3efb26ae7f
Merge pull request #4632 from AnjoMan/dont-rewrite-objects-with-failing-getattr
...
Assertion rewrite breaks for objects that reimplement `__getattr__`
2019-01-11 14:07:22 -02:00
Anton Lodder
77da4f118c
Add changelog 4631 and AUTHOR credits for Anton Lodder
2019-01-10 20:48:51 -05:00
Anton Lodder
3241fc3103
Don't fail if hasattr fails when rewriting assertions
...
When rewriting assertions, pytest makes a call to
`__name__` on each object in a comparision. If one of
the objects has reimplemented `__getattr__`, they could
fail trying to fetch `__name__` with an error other than
`AttributeError`, which is what `hasattr` catches.
In this case, the stack trace for the failed `__getattr__`
call will show up in the pytest output, even though
it isn't related to the test failing.
This change fixes that by catching exceptions
that `hasattr` throws.
2019-01-10 20:45:15 -05:00
Anton Lodder
acb3e8e8a7
Test rewriting assertion when __name__ fails
...
Pytest rewrites assertions so that the items on each
side of a comoparison will have easier-to-read names
in case of an assertion error.
Before doing this, it checks to make sure the object
doesn't have a __name__ attribute; however, it uses
`hasattr` so if the objects __getattr__ is broken then
the test failure message will be the stack trace
for this failure instead of a rewritten assertion.
2019-01-10 20:45:15 -05:00
Bruno Oliveira
5f16ff3acc
Merge pull request #4212 from RonnyPfannschmidt/doctest-testmod-has-call
...
Doctest: hack in handling mock style objects
2019-01-10 19:13:45 -02:00
Bruno Oliveira
71a745270a
Merge pull request #4607 from oscarbenjamin/long_output
...
Show full repr with assert a==b and -vv
2019-01-10 12:30:46 -02:00
Bruno Oliveira
5dcb370f78
Merge pull request #4624 from nicoddemus/merge-master-into-features
...
Merge master into features
2019-01-10 12:11:20 -02:00
Bruno Oliveira
0f918b1a9d
xunit-style functions and methods are invoked by autouse fixtures
...
Fix #3094 , Fix #517
2019-01-10 12:10:04 -02:00
Ronny Pfannschmidt
a6988aa0b9
fix doctest module when a mock object is around
...
fixes #3456
2019-01-10 12:50:22 +01:00
Bruno Oliveira
2359663437
Merge pull request #4622 from nicoddemus/warningschecker-unittest
...
Change test_warningschecker_twice to a unittest
2019-01-10 06:04:25 -02:00
Anthony Sottile
bace28517e
Merge pull request #4626 from nicoddemus/goodpractices-pythonpath
...
Mention PYTHONPATH semantics in goodpractices.rst
2019-01-09 20:41:53 -08:00
Bruno Oliveira
9f6d9efc1d
Mention PYTHONPATH semantics in goodpractices.rst
...
Fix #4625
2019-01-09 22:45:09 -02:00
Bruno Oliveira
a0ab5a7cd8
Merge pull request #4609 from yoavcaspi/documentation-configuration-files
...
Documentation configuration files
2019-01-09 22:32:02 -02:00