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