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
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
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
1d55c49a9a
Fix `ImportWarning` triggered by explicit relative imports
2018-06-23 07:55:49 -07:00
Bruno Oliveira
8cc210708c
Improve changelog and change it to doc
2018-06-22 09:14:59 -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
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
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
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
617a5fcf98
Preparing release version 3.6.2
2018-06-20 00:29:58 +00: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
Alex Barbato
561db95521
Add changelog file.
2018-06-16 12:44:19 -04: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
Wil Cooley
3615977608
Add `messages` property to `caplog` fixture.
2018-06-14 12:22:33 -07:00
Ronny Pfannschmidt
791bb3502c
changelog
2018-06-13 17:29:42 +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
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
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
Michael Käufl
4a78711067
Fix typo in documentation
2018-06-11 13:28:09 +02: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
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
97d48ba60d
Add documentation blurb for --strict
...
Fix #3549
2018-06-09 12:02:21 -03:00
Anthony Sottile
4c01dd651e
Add changelog entry for #3552
2018-06-08 06:20:57 -07: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
Bruno Oliveira
66ec0a50b6
Preparing release version 3.6.1
2018-06-05 01:11:27 +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
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
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
Ronny Pfannschmidt
130f76f66e
enable pip/pre-commit caching on travis and appveyor
2018-05-27 13:05:10 +02:00
Ronny Pfannschmidt
eaa882f3d5
switch to src layout
2018-05-26 09:10:38 +02: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
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
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
bc25d51b2f
Re-word changelog
2018-05-24 07:27:40 -03:00
Ronny Pfannschmidt
5a0c9aca63
correctly instantiate fixtureinfo for unittest tests, fixes #3498
2018-05-24 10:29:42 +02: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
86fc31db8d
apply most other hooks and opt out of black reformating
2018-05-23 16:45:58 +02: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
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
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
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
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
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
aviral1701
f14e097635
added changelog and added my name to the authors
2018-05-15 12:54:48 +05:30
Ronny Pfannschmidt
4914135fdf
introduce name filtering for marker iteration again
2018-05-11 21:48:15 +02: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
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
63ef46dd91
fix #3441 - use iter-marks to populate markexpr namespace
2018-05-03 16:28:47 +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
Brian Maissy
c258fe1459
--pdb treats KeyboardInterrupt as exception
2018-05-02 00:58:35 +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
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
turturica
d483b401ee
Merge remote-tracking branch 'upstream/features' into features
2018-04-24 13:45:10 -07: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
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
turturica
e44d4e6508
Merge remote-tracking branch 'upstream/features' into features
2018-04-20 15:21:24 -07: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
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
Brian Maissy
857098fe0f
added indicative error when parametrizing an argument with a default value
2018-04-15 20:52:57 +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
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
turturica
2b1410895e
Add package scoped fixtures #2283
2018-04-11 15:39:42 -07:00
Bruno Oliveira
10a7160549
Merge remote-tracking branch 'upstream/master' into merge-master-into-features
2018-04-11 18:07:47 -03:00
feuillemorte
97be076f29
#3290 Added changelog file
2018-04-11 12:45:46 +03:00
Bruno Oliveira
6e8e3c967a
Add changelog entry for #2798
2018-04-10 21:09:57 -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
Tim Strazny
ec2d8223cf
Fix issue #3372
2018-04-06 14:16:12 +02: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
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