167e9b954a 
								
							 
						 
						
							
							
								
								Remove use of unnecessary compat shim, six.binary_type  
							
							... 
							
							
							
							The type `bytes` is available on all supported Python versions. On
Python 2.7, it is an alias of str, same as six.binary_type.
Makes the code slightly more forward compatible. 
							
						 
						
							2018-10-26 06:27:50 -07:00  
				
					
						
							
							
								 
						
							
								9cde67c09c 
								
							 
						 
						
							
							
								
								Merge pull request  #4224  from blueyed/_getconftestmodules  
							
							... 
							
							
							
							_getconftestmodules: avoid isfile()/dirpath() 
							
						 
						
							2018-10-26 14:44:46 +02:00  
				
					
						
							
							
								 
						
							
								ae2fc27799 
								
							 
						 
						
							
							
								
								handle test folder cleanup being unable to create a cleanup lock  
							
							
							
						 
						
							2018-10-26 14:31:54 +02:00  
				
					
						
							
							
								 
						
							
								8d0e1a99e4 
								
							 
						 
						
							
							
								
								Merge pull request  #4241  from blueyed/move-duplicates  
							
							... 
							
							
							
							Move handling of duplicate files 
							
						 
						
							2018-10-26 08:07:48 -03:00  
				
					
						
							
							
								 
						
							
								ce0b0518c7 
								
							 
						 
						
							
							
								
								fix   #4243  - support positional argument stacklevel on python2  
							
							
							
						 
						
							2018-10-26 09:01:25 +02:00  
				
					
						
							
							
								 
						
							
								777e9e1e17 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'origin/master' into merge-master  
							
							
							
						 
						
							2018-10-25 18:00:39 -07:00  
				
					
						
							
							
								 
						
							
								e041823643 
								
							 
						 
						
							
							
								
								Move handling of duplicate files  
							
							... 
							
							
							
							This removes the hack added in https://github.com/pytest-dev/pytest/pull/3802 .
Adjusts test:
- it appears to not have been changed to 7 intentionally.
- removes XXX comment, likely not relevant anymore since 6dac7743 
							
						 
						
							2018-10-25 20:48:08 +02:00  
				
					
						
							
							
								 
						
							
								63691f5656 
								
							 
						 
						
							
							
								
								_getconftestmodules: avoid isfile()/dirpath()  
							
							... 
							
							
							
							Ref: https://github.com/pytest-dev/pytest/issues/2206#issuecomment-432623646  
							
						 
						
							2018-10-25 20:25:07 +02:00  
				
					
						
							
							
								 
						
							
								0dc6cb298e 
								
							 
						 
						
							
							
								
								Move lru_cache wrapper to compat  
							
							... 
							
							
							
							Ref: https://github.com/pytest-dev/pytest/pull/4227#discussion_r228060373  
							
						 
						
							2018-10-25 18:20:36 +02:00  
				
					
						
							
							
								 
						
							
								ede3a4e850 
								
							 
						 
						
							
							
								
								pytest_{enter,leave}_pdb: pass through pdb instance  
							
							
							
						 
						
							2018-10-25 13:28:24 +02:00  
				
					
						
							
							
								 
						
							
								a4ea66cb1f 
								
							 
						 
						
							
							
								
								pdb: resume capturing after `continue`  
							
							... 
							
							
							
							After `pdb.set_trace()` capturing is turned off.
This patch resumes it after using the `continue` (or `c` / `cont`)
command.
Store _pytest_capman on the class, for pdbpp's do_debug hack to keep it.
Without this, `debug …` would fail like this:
    /usr/lib/python3.6/cmd.py:217: in onecmd
        return func(arg)
    .venv/lib/python3.6/site-packages/pdb.py:608: in do_debug
        return orig_do_debug(self, arg)
    /usr/lib/python3.6/pdb.py:1099: in do_debug
        sys.call_tracing(p.run, (arg, globals, locals))
    /usr/lib/python3.6/bdb.py:434: in run
        exec(cmd, globals, locals)
    /usr/lib/python3.6/bdb.py:51: in trace_dispatch
        return self.dispatch_line(frame)
    /usr/lib/python3.6/bdb.py:69: in dispatch_line
        self.user_line(frame)
    /usr/lib/python3.6/pdb.py:261: in user_line
        self.interaction(frame, None)
    .venv/lib/python3.6/site-packages/pdb.py:203: in interaction
        self.setup(frame, traceback)
    E   AttributeError: 'PytestPdb' object has no attribute '_pytest_capman'
- add pytest_leave_pdb hook
- fixes test_pdb_interaction_capturing_twice: would fail on master now,
  but works here 
							
						 
						
							2018-10-25 13:28:24 +02:00  
				
					
						
							
							
								 
						
							
								2368fbb63c 
								
							 
						 
						
							
							
								
								Apply reorder-python-imports to all files  
							
							
							
						 
						
							2018-10-25 00:01:29 -07:00  
				
					
						
							
							
								 
						
							
								f6dfca7182 
								
							 
						 
						
							
							
								
								Merge pull request  #4229  from nicoddemus/fix-warning-location  
							
							... 
							
							
							
							Show node that originated a warning in the warnings summary 
							
						 
						
							2018-10-25 08:26:01 +02:00  
				
					
						
							
							
								 
						
							
								65b97c2f41 
								
							 
						 
						
							
							
								
								Merge pull request  #4227  from blueyed/_getconftest_pathlist-lru  
							
							... 
							
							
							
							Use functools.lru_cache with _getconftest_pathlist 
							
						 
						
							2018-10-25 08:12:51 +02:00  
				
					
						
							
							
								 
						
							
								1786ad16a7 
								
							 
						 
						
							
							
								
								functools.lru_cache does not exist on Python 2, apply for Python 3 only  
							
							
							
						 
						
							2018-10-24 18:59:54 -03:00  
				
					
						
							
							
								 
						
							
								2cf4c67e45 
								
							 
						 
						
							
							
								
								doc: fix caplog: s/methods/properties/  
							
							
							
						 
						
							2018-10-24 23:57:11 +02:00  
				
					
						
							
							
								 
						
							
								2ad43ee442 
								
							 
						 
						
							
							
								
								Show node that originated a warning in the warnings summary  
							
							... 
							
							
							
							Fix  #4221  
						
							2018-10-24 18:49:53 -03:00  
				
					
						
							
							
								 
						
							
								57caa4e25e 
								
							 
						 
						
							
							
								
								Fix flake8: os imported, but unused  
							
							... 
							
							
							
							Likely due to b6fa4e24 
							
						 
						
							2018-10-24 23:43:41 +02:00  
				
					
						
							
							
								 
						
							
								b6fa4e248f 
								
							 
						 
						
							
							
								
								Merge pull request  #4028  from asottile/revert_breakpoint_code  
							
							... 
							
							
							
							Revert patching of breakpointhook as it appears to do nothing 
							
						 
						
							2018-10-24 17:50:19 -03:00  
				
					
						
							
							
								 
						
							
								eee8201e4f 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'origin/master' into merge-master  
							
							
							
						 
						
							2018-10-24 22:36:34 +02:00  
				
					
						
							
							
								 
						
							
								d40cd3ec6b 
								
							 
						 
						
							
							
								
								Use functools.lru_cache with _getconftest_pathlist  
							
							... 
							
							
							
							For pytest's own suite the `cache_info()` looks as follows:
    > session.config._getconftest_pathlist.cache_info()
    CacheInfo(hits=231, misses=19, maxsize=None, currsize=19)
While it does not really make a difference for me this might help with
larger test suites / the case mentioned in
https://github.com/pytest-dev/pytest/issues/2206#issuecomment-432623646 . 
							
						 
						
							2018-10-24 18:22:30 +02:00  
				
					
						
							
							
								 
						
							
								f8f4c16020 
								
							 
						 
						
							
							
								
								TerminalWriter: write "collecting" msg only once every 0.1s  
							
							... 
							
							
							
							Running `pytest -k doesnotmatch` on pytest's own tests takes ~3s with
Kitty terminal for me, but only ~1s with `-q`.
It also is faster with urxvt, but still takes 2.2s there.
This patch only calls `report_collect` every 0.1s, which is good enough
for reporting collection progress, and improves the time with both Kitty
and urxvt to ~1.2s for me. 
							
						 
						
							2018-10-24 16:48:35 +02:00  
				
					
						
							
							
								 
						
							
								b51ee48f78 
								
							 
						 
						
							
							
								
								minor: remove unused _shutil_rmtree_remove_writable  
							
							
							
						 
						
							2018-10-23 17:36:22 +02:00  
				
					
						
							
							
								 
						
							
								fadac0ffc0 
								
							 
						 
						
							
							
								
								Fix "Plugin already registered" error with symlinks  
							
							... 
							
							
							
							Fixes https://github.com/pytest-dev/pytest/issues/4174 . 
							
						 
						
							2018-10-23 10:15:23 +02:00  
				
					
						
							
							
								 
						
							
								cb39bd0651 
								
							 
						 
						
							
							
								
								Fixes for flake8 master  
							
							
							
						 
						
							2018-10-22 08:50:00 -07:00  
				
					
						
							
							
								 
						
							
								cd72e23f3f 
								
							 
						 
						
							
							
								
								Merge pull request  #4207  from nicoddemus/recursive-dep-fixtures  
							
							... 
							
							
							
							Improve error message when a recursive dependency between fixtures is detected 
							
						 
						
							2018-10-20 22:19:21 +05:30  
				
					
						
							
							
								 
						
							
								7bb51b8ceb 
								
							 
						 
						
							
							
								
								Issue a warning when a fixture named 'request' is collected  
							
							... 
							
							
							
							Fix  #611  
						
							2018-10-20 12:09:44 -03:00  
				
					
						
							
							
								 
						
							
								b9990f77ff 
								
							 
						 
						
							
							
								
								Merge pull request  #4204  from vbarbaresi/3340_log_hooks  
							
							... 
							
							
							
							Fix logging usage in hooks pytest_sessionstart/finish 
							
						 
						
							2018-10-20 11:36:06 -03:00  
				
					
						
							
							
								 
						
							
								02ae7d8531 
								
							 
						 
						
							
							
								
								Improve error message when a recursive dependency between fixtures is detected  
							
							... 
							
							
							
							Fix  #2909  
						
							2018-10-20 09:44:42 -03:00  
				
					
						
							
							
								 
						
							
								f947cb2613 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/features' into davidszotten/stepwise  
							
							
							
						 
						
							2018-10-20 09:18:02 -03:00  
				
					
						
							
							
								 
						
							
								db106d6085 
								
							 
						 
						
							
							
								
								Fix logging usage in hooks pytest_sessionstart/finish  #3340  
							
							
							
						 
						
							2018-10-20 09:55:10 +02:00  
				
					
						
							
							
								 
						
							
								2abd005cc9 
								
							 
						 
						
							
							
								
								Merge pull request  #4195  from nicoddemus/issue-3691  
							
							... 
							
							
							
							Use safe_str() to format warning message about unicode in Python 2 
							
						 
						
							2018-10-19 07:18:29 -03:00  
				
					
						
							
							
								 
						
							
								dc0b4efffa 
								
							 
						 
						
							
							
								
								Merge pull request  #4196  from nicoddemus/better-signature-error-msg-4026  
							
							... 
							
							
							
							Improve error message when it is not possible to determine a function's signature 
							
						 
						
							2018-10-18 18:56:55 -07:00  
				
					
						
							
							
								 
						
							
								18035211f5 
								
							 
						 
						
							
							
								
								Use safe_str() to format warning message about unicode in Python 2  
							
							... 
							
							
							
							Fix  #3691  
						
							2018-10-18 21:56:17 -03:00  
				
					
						
							
							
								 
						
							
								61080da89d 
								
							 
						 
						
							
							
								
								Merge pull request  #4192  from asottile/fix_recwarn_stacklevel  
							
							... 
							
							
							
							Fix filename reported by `warnings.warn` when using `recwarn` under python2. 
							
						 
						
							2018-10-18 16:22:00 -07:00  
				
					
						
							
							
								 
						
							
								ac5704290f 
								
							 
						 
						
							
							
								
								Improve error message when it is not possible to determine a function's signature  
							
							... 
							
							
							
							Fix  #4026  
						
							2018-10-18 20:06:43 -03:00  
				
					
						
							
							
								 
						
							
								b432f1207c 
								
							 
						 
						
							
							
								
								Merge pull request  #4190  from nicoddemus/merge-master-into-features  
							
							... 
							
							
							
							Merge master into features 
							
						 
						
							2018-10-18 19:23:16 -03:00  
				
					
						
							
							
								 
						
							
								cdd0e18ca8 
								
							 
						 
						
							
							
								
								Emulate resetting the warnings registry for python 2.x  
							
							
							
						 
						
							2018-10-18 10:43:05 -07:00  
				
					
						
							
							
								 
						
							
								1b51497936 
								
							 
						 
						
							
							
								
								[WIP] Update warning stacklevel when wrapping warnings.warn  
							
							
							
						 
						
							2018-10-18 02:36:41 +00:00  
				
					
						
							
							
								 
						
							
								f694d8d6ad 
								
							 
						 
						
							
							
								
								Make --color more colorful  
							
							
							
						 
						
							2018-10-18 03:56:58 +02:00  
				
					
						
							
							
								 
						
							
								e478f66d8b 
								
							 
						 
						
							
							
								
								cache is set by the cacheprovider  
							
							
							
						 
						
							2018-10-17 21:17:54 +01:00  
				
					
						
							
							
								 
						
							
								cc335d44a0 
								
							 
						 
						
							
							
								
								fix   #4179  - bring back the current testrun symlink  
							
							
							
						 
						
							2018-10-17 20:43:27 +02:00  
				
					
						
							
							
								 
						
							
								ab8907f6f5 
								
							 
						 
						
							
							
								
								s/comparision/comparison/g [ci skip]  
							
							
							
						 
						
							2018-10-16 17:23:29 -07:00  
				
					
						
							
							
								 
						
							
								ee0a306ee4 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/features' into merge-features-into-master  
							
							
							
						 
						
							2018-10-16 17:41:27 -03:00  
				
					
						
							
							
								 
						
							
								f858177495 
								
							 
						 
						
							
							
								
								Merge pull request  #4167  from vbarbaresi/3533_junit_escape_skipped  
							
							... 
							
							
							
							Fix  #3533 : properly escape raw XML object 
						
							2018-10-16 21:10:42 +05:30  
				
					
						
							
							
								 
						
							
								54b8ad4554 
								
							 
						 
						
							
							
								
								Merge pull request  #4159  from thisch/subclassedfile  
							
							... 
							
							
							
							Increase required verbosity level for debug output 
							
						 
						
							2018-10-16 10:41:27 -03:00  
				
					
						
							
							
								 
						
							
								f55ded20a9 
								
							 
						 
						
							
							
								
								fix   #3533 : properly escape raw XML object  
							
							... 
							
							
							
							Using string formatting with the raw escaped object lead to string evaluation
"<py._xmlgen.raw object>"
Format the unescaped string first, then use the XML escape method as a last step. 
							
						 
						
							2018-10-16 14:46:39 +02:00  
				
					
						
							
							
								 
						
							
								d67d189d00 
								
							 
						 
						
							
							
								
								grammar  
							
							
							
						 
						
							2018-10-15 20:04:39 +01:00  
				
					
						
							
							
								 
						
							
								e773c8ceda 
								
							 
						 
						
							
							
								
								linting  
							
							
							
						 
						
							2018-10-15 20:04:39 +01:00  
				
					
						
							
							
								 
						
							
								63c01d1541 
								
							 
						 
						
							
							
								
								update for builtin plugin  
							
							
							
						 
						
							2018-10-15 20:04:39 +01:00  
				
					
						
							
							
								 
						
							
								c56d7ac40e 
								
							 
						 
						
							
							
								
								move files into the pytest file structure  
							
							
							
						 
						
							2018-10-15 20:04:39 +01:00  
				
					
						
							
							
								 
						
							
								e8c220b9bd 
								
							 
						 
						
							
							
								
								Increase required verbosity level for debug output  
							
							... 
							
							
							
							To show the subclassed file in legacy test suits in the runtest output
you have to set the verbosity level to at least "-vv" now.
Closes  #3211  
							
						 
						
							2018-10-15 20:38:32 +02:00  
				
					
						
							
							
								 
						
							
								9646a1cd7a 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-10-15 12:55:28 -03:00  
				
					
						
							
							
								 
						
							
								141c51f0cb 
								
							 
						 
						
							
							
								
								Merge pull request  #4145  from labcodes/4098  
							
							... 
							
							
							
							Add returncode argument to pytest.exit 
							
						 
						
							2018-10-15 11:04:11 +05:30  
				
					
						
							
							
								 
						
							
								2e42d937dc 
								
							 
						 
						
							
							
								
								Display the filename when encountering `SyntaxWarning`.  
							
							... 
							
							
							
							```console
$ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd ..
.                                                                        [100%]
=============================== warnings summary ===============================
<unknown>:2: DeprecationWarning: invalid escape sequence \.
-- Docs: https://docs.pytest.org/en/latest/warnings.html 
1 passed, 1 warnings in 0.01 seconds
```
```console
$ cd t && rm -rf __pycache__ && pytest t.py -q -c /dev/null; cd ..
.                                                                        [100%]
=============================== warnings summary ===============================
/tmp/pytest/t/t.py:2: DeprecationWarning: invalid escape sequence \.
  '\.wat'
-- Docs: https://docs.pytest.org/en/latest/warnings.html 
1 passed, 1 warnings in 0.01 seconds
``` 
							
						 
						
							2018-10-14 16:11:47 -07:00  
				
					
						
							
							
								 
						
							
								27d932e882 
								
							 
						 
						
							
							
								
								Fix order of parameters when raising Exit exception  
							
							
							
						 
						
							2018-10-14 18:48:32 -03:00  
				
					
						
							
							
								 
						
							
								40091ec2c7 
								
							 
						 
						
							
							
								
								Update pytest.exit docstring  
							
							
							
						 
						
							2018-10-14 18:44:53 -03:00  
				
					
						
							
							
								 
						
							
								76fb9970c8 
								
							 
						 
						
							
							
								
								Check if returncode is not None before assigning test return code  
							
							
							
						 
						
							2018-10-14 18:43:48 -03:00  
				
					
						
							
							
								 
						
							
								d32f2c5c14 
								
							 
						 
						
							
							
								
								Change Exit.__init__ params order to keep backward compatibility  
							
							
							
						 
						
							2018-10-14 18:42:55 -03:00  
				
					
						
							
							
								 
						
							
								d4dfd526c1 
								
							 
						 
						
							
							
								
								Update pytest.exit docstring  
							
							
							
						 
						
							2018-10-14 18:01:47 -03:00  
				
					
						
							
							
								 
						
							
								836c9f82f1 
								
							 
						 
						
							
							
								
								Set test session exitstatus value from Exit excetion return code  
							
							
							
						 
						
							2018-10-14 16:39:43 -03:00  
				
					
						
							
							
								 
						
							
								46d6a3fc27 
								
							 
						 
						
							
							
								
								Pass returncode to Error exception when creating instance  
							
							
							
						 
						
							2018-10-14 16:36:53 -03:00  
				
					
						
							
							
								 
						
							
								1dfa303b1e 
								
							 
						 
						
							
							
								
								fix   #4135  - handle symlinks in tmp path cleanup  
							
							
							
						 
						
							2018-10-14 21:20:34 +02:00  
				
					
						
							
							
								 
						
							
								d7be039f1b 
								
							 
						 
						
							
							
								
								Add returncode argument to pytest.exit  
							
							... 
							
							
							
							If the argument is not None, it'll raise a SystemExit exception to
cleanly exit pytest. 
							
						 
						
							2018-10-14 12:26:31 -03:00  
				
					
						
							
							
								 
						
							
								d6832a8b56 
								
							 
						 
						
							
							
								
								Merge pull request  #4133  from blueyed/pdb-quit  
							
							... 
							
							
							
							pdb: handle quitting in post_mortem 
							
						 
						
							2018-10-14 11:29:09 +02:00  
				
					
						
							
							
								 
						
							
								3bfaa8ab84 
								
							 
						 
						
							
							
								
								Merge pull request  #4132  from blueyed/pdb-internal-dupe  
							
							... 
							
							
							
							Do not print (duplicate) INTERNALERROR with --pdb. 
							
						 
						
							2018-10-14 11:25:35 +02:00  
				
					
						
							
							
								 
						
							
								9fb305b17b 
								
							 
						 
						
							
							
								
								Merge pull request  #4086  from jeffreyrack/4063-exclude-0-durations  
							
							... 
							
							
							
							Exclude durations that are 0.00 seconds long. 
							
						 
						
							2018-10-13 22:16:04 -03:00  
				
					
						
							
							
								 
						
							
								86c7dcff68 
								
							 
						 
						
							
							
								
								pdb: handle quitting in post_mortem  
							
							... 
							
							
							
							`help quit` in pdb says:
> Quit from the debugger. The program being executed is aborted.
But pytest would continue with the next tests, often making it necessary
to kill the pytest process when using `--pdb` and trying to cancel the
tests using `KeyboardInterrupt` / `Ctrl-C`. 
							
						 
						
							2018-10-14 00:05:45 +02:00  
				
					
						
							
							
								 
						
							
								7268462b33 
								
							 
						 
						
							
							
								
								Resolve symlinks for args  
							
							... 
							
							
							
							This fixes running `pytest tests/test_foo.py::test_bar`, where `tests`
is a symlink to `project/app/tests`: previously
`project/app/conftest.py` would be ignored for fixtures then. 
							
						 
						
							2018-10-13 23:59:05 +02:00  
				
					
						
							
							
								 
						
							
								448830e656 
								
							 
						 
						
							
							
								
								Do not print INTERNALERROR with --pdb  
							
							... 
							
							
							
							This gets printed by the terminal reporter already, and currently
results in the same error being displayed twice, e.g. when raising an
`Exception` manually from `pytest.debugging.pytest_exception_interact`. 
							
						 
						
							2018-10-13 23:56:34 +02:00  
				
					
						
							
							
								 
						
							
								3683d92c53 
								
							 
						 
						
							
							
								
								Adjust the 'durations hidden' message  
							
							
							
						 
						
							2018-10-13 18:40:32 -03:00  
				
					
						
							
							
								 
						
							
								7a271a91b0 
								
							 
						 
						
							
							
								
								Fix rounding error when displaying durations in non-verbose mode.  
							
							
							
						 
						
							2018-10-13 12:55:17 -07:00  
				
					
						
							
							
								 
						
							
								47f5c29002 
								
							 
						 
						
							
							
								
								Update messaging for --durations when not in verbose mode.  
							
							
							
						 
						
							2018-10-13 12:51:04 -07:00  
				
					
						
							
							
								 
						
							
								ee54fb9a6b 
								
							 
						 
						
							
							
								
								pytester: use EXIT_INTERRUPTED  
							
							
							
						 
						
							2018-10-13 17:06:40 +02:00  
				
					
						
							
							
								 
						
							
								10ddc466bf 
								
							 
						 
						
							
							
								
								minor: typo and code style  
							
							
							
						 
						
							2018-10-13 17:06:40 +02:00  
				
					
						
							
							
								 
						
							
								24c83d725a 
								
							 
						 
						
							
							
								
								Merge pull request  #4129  from nicoddemus/merge-master-into-features  
							
							... 
							
							
							
							Merge master into features (prepare for 3.9) 
							
						 
						
							2018-10-13 12:05:54 -03:00  
				
					
						
							
							
								 
						
							
								29d5849519 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-10-13 08:50:32 -03:00  
				
					
						
							
							
								 
						
							
								ef97121d42 
								
							 
						 
						
							
							
								
								Removed unused ConftestImportFailure.__str__ method  
							
							
							
						 
						
							2018-10-12 10:57:13 -03:00  
				
					
						
							
							
								 
						
							
								2cb3534679 
								
							 
						 
						
							
							
								
								Move filter_traceback to _pytest._code  
							
							
							
						 
						
							2018-10-12 10:19:50 -03:00  
				
					
						
							
							
								 
						
							
								8e11fe5304 
								
							 
						 
						
							
							
								
								Improve tracebacks for ImportErrors in conftest.py files  
							
							... 
							
							
							
							Fix  #3332  
						
							2018-10-12 10:10:55 -03:00  
				
					
						
							
							
								 
						
							
								36dc671843 
								
							 
						 
						
							
							
								
								New ExceptionInfo.getrepr 'chain' parameter to be able to suppress chained exceptions  
							
							
							
						 
						
							2018-10-12 10:08:55 -03:00  
				
					
						
							
							
								 
						
							
								933de16fe4 
								
							 
						 
						
							
							
								
								Merge pull request  #3988  from RonnyPfannschmidt/tmpdir-port-pathlib  
							
							... 
							
							
							
							Tmpdir port pathlib 
							
						 
						
							2018-10-12 08:33:47 -03:00  
				
					
						
							
							
								 
						
							
								e8348a1d12 
								
							 
						 
						
							
							
								
								Merge pull request  #4077  from nicoddemus/short-usage-errors  
							
							... 
							
							
							
							Improve internal error messages 
							
						 
						
							2018-10-12 08:18:07 -03:00  
				
					
						
							
							
								 
						
							
								4736b2bdfb 
								
							 
						 
						
							
							
								
								address review comments  
							
							
							
						 
						
							2018-10-11 20:48:30 +02:00  
				
					
						
							
							
								 
						
							
								8ecdd4e9ff 
								
							 
						 
						
							
							
								
								Merge pull request  #4104  from asottile/deprecated_call_match  
							
							... 
							
							
							
							Implement pytest.deprecated_call with pytest.warns 
							
						 
						
							2018-10-11 08:20:13 -07:00  
				
					
						
							
							
								 
						
							
								b3940666a7 
								
							 
						 
						
							
							
								
								Merge pull request  #4103  from blueyed/conftest  
							
							... 
							
							
							
							conftest: optimize _getconftestmodules 
							
						 
						
							2018-10-11 13:52:48 +02:00  
				
					
						
							
							
								 
						
							
								16e2737da3 
								
							 
						 
						
							
							
								
								implement tmp_path_factory and deprecate pytest.ensuretemp as intended  
							
							
							
						 
						
							2018-10-11 09:41:37 +02:00  
				
					
						
							
							
								 
						
							
								36c2a101cb 
								
							 
						 
						
							
							
								
								add missing docstring  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								ebd597b2fd 
								
							 
						 
						
							
							
								
								use the constant for lock timeouts  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								94829c391b 
								
							 
						 
						
							
							
								
								make tmpdir env cleanup idempotent  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								b82d6f7a0b 
								
							 
						 
						
							
							
								
								pytester: use per test tmproot  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								4a436b5470 
								
							 
						 
						
							
							
								
								resolve in code review commments  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								3036914097 
								
							 
						 
						
							
							
								
								sort out rmtree expectations  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								2831cb9ab5 
								
							 
						 
						
							
							
								
								unify paths.py and pathlib.py  
							
							
							
						 
						
							2018-10-11 07:15:09 +02:00  
				
					
						
							
							
								 
						
							
								85cc9b8f12 
								
							 
						 
						
							
							
								
								move all the things into _pytest.pathlib  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								fed4f73a61 
								
							 
						 
						
							
							
								
								ignore rmtree errors  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								d76fa59b35 
								
							 
						 
						
							
							
								
								fix lock timeouts for good this time  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								2532dc1dbb 
								
							 
						 
						
							
							
								
								fix up lock consideration argument  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								642cd86dd1 
								
							 
						 
						
							
							
								
								shape up removal and lock destruction  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								b3a5b0ebe1 
								
							 
						 
						
							
							
								
								remove path from exposure  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								8b4a29357e 
								
							 
						 
						
							
							
								
								fix typo  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								ab3637d486 
								
							 
						 
						
							
							
								
								implement cleanup for unlocked folders  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								66a690928c 
								
							 
						 
						
							
							
								
								bring in purepath and fix an assertion  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								8e00280fc1 
								
							 
						 
						
							
							
								
								fix linting  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								d053cdfbbb 
								
							 
						 
						
							
							
								
								factor out max and iterate on locks and cleanups  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								2e39fd89d1 
								
							 
						 
						
							
							
								
								add python27 support by using reduce instead of max  
							
							
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								b48e23d54c 
								
							 
						 
						
							
							
								
								port interals of tmpdir to a basic pathlib implementation  
							
							... 
							
							
							
							this is still lacking locking and cleanup of the folders 
							
						 
						
							2018-10-11 07:15:08 +02:00  
				
					
						
							
							
								 
						
							
								c9a85b0e78 
								
							 
						 
						
							
							
								
								Fix linting  
							
							
							
						 
						
							2018-10-10 19:54:39 -03:00  
				
					
						
							
							
								 
						
							
								bf265a424d 
								
							 
						 
						
							
							
								
								Minor adjustments found during code review  
							
							
							
						 
						
							2018-10-10 19:35:49 -03:00  
				
					
						
							
							
								 
						
							
								5436e42990 
								
							 
						 
						
							
							
								
								Use pytest.fail(..., pytrace=False) when treating user errors  
							
							... 
							
							
							
							This prevents an enormous and often useless stack trace from showing
to end users.
Fix  #3867 
Fix  #2293  
							
						 
						
							2018-10-10 19:16:53 -03:00  
				
					
						
							
							
								 
						
							
								67f40e18a7 
								
							 
						 
						
							
							
								
								Use attr.s(repr=False) because we customize MarkInfo's repr  
							
							
							
						 
						
							2018-10-10 19:13:34 -03:00  
				
					
						
							
							
								 
						
							
								52ff1eaf37 
								
							 
						 
						
							
							
								
								_getconftestmodules: optimize  
							
							
							
						 
						
							2018-10-10 21:30:33 +02:00  
				
					
						
							
							
								 
						
							
								602e74c2a7 
								
							 
						 
						
							
							
								
								Merge pull request  #4107  from blueyed/__tracebackhide__  
							
							... 
							
							
							
							pytester: fix __tracebackhide__ for {re_,fn}match_lines 
							
						 
						
							2018-10-10 20:55:32 +02:00  
				
					
						
							
							
								 
						
							
								4c9015c3b1 
								
							 
						 
						
							
							
								
								Merge pull request  #4105  from blueyed/repr  
							
							... 
							
							
							
							Fix trailing whitespace in FixtureDef.__repr__ 
							
						 
						
							2018-10-10 19:28:32 +02:00  
				
					
						
							
							
								 
						
							
								c14a23d4e4 
								
							 
						 
						
							
							
								
								Fix   #4093 : multiple string literals on a line  
							
							
							
						 
						
							2018-10-10 19:28:31 +02:00  
				
					
						
							
							
								 
						
							
								b8fc3e569a 
								
							 
						 
						
							
							
								
								pytester: fix __tracebackhide__ for {re_,fn}match_lines  
							
							
							
						 
						
							2018-10-10 19:27:43 +02:00  
				
					
						
							
							
								 
						
							
								e0f6fce9e9 
								
							 
						 
						
							
							
								
								In python2, display previously warned warnings  
							
							
							
						 
						
							2018-10-10 09:37:21 -07:00  
				
					
						
							
							
								 
						
							
								d93de6cc67 
								
							 
						 
						
							
							
								
								Fix trailing whitespace in FixtureDef.__repr__  
							
							
							
						 
						
							2018-10-10 18:14:56 +02:00  
				
					
						
							
							
								 
						
							
								aeb92accb2 
								
							 
						 
						
							
							
								
								Implement pytest.deprecated_call with pytest.warns  
							
							
							
						 
						
							2018-10-10 08:03:23 -07:00  
				
					
						
							
							
								 
						
							
								9a3836a0cf 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-10-09 19:34:04 -03:00  
				
					
						
							
							
								 
						
							
								11a07211b6 
								
							 
						 
						
							
							
								
								re-enable linting tox env on windows  
							
							
							
						 
						
							2018-10-09 13:01:51 -07:00  
				
					
						
							
							
								 
						
							
								65545d8fb2 
								
							 
						 
						
							
							
								
								Manual fixups of black formatting  
							
							
							
						 
						
							2018-10-08 10:12:42 -07:00  
				
					
						
							
							
								 
						
							
								1caf6d5907 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks  
							
							
							
						 
						
							2018-10-08 10:10:46 -07:00  
				
					
						
							
							
								 
						
							
								fc11b81005 
								
							 
						 
						
							
							
								
								Exclude durations that are 0.00 seconds long.  
							
							
							
						 
						
							2018-10-07 19:19:48 -07:00  
				
					
						
							
							
								 
						
							
								ccaec8d360 
								
							 
						 
						
							
							
								
								__tracebackhide__ = True  
							
							
							
						 
						
							2018-10-06 21:57:03 -04:00  
				
					
						
							
							
								 
						
							
								66609665f2 
								
							 
						 
						
							
							
								
								Merge pull request  #4076  from nicoddemus/unittest-param-fixture-msg  
							
							... 
							
							
							
							Improve error message when TestCase functions use a parametrized fixture 
							
						 
						
							2018-10-06 07:43:57 +02:00  
				
					
						
							
							
								 
						
							
								4b36f9aa64 
								
							 
						 
						
							
							
								
								Tidy timeout checking  
							
							
							
						 
						
							2018-10-05 16:46:24 -04:00  
				
					
						
							
							
								 
						
							
								ed5556bdac 
								
							 
						 
						
							
							
								
								Add to docstrings  
							
							
							
						 
						
							2018-10-05 10:02:59 -04:00  
				
					
						
							
							
								 
						
							
								42422a7f62 
								
							 
						 
						
							
							
								
								Throw away arbitrary args to runpytest_subprocess()  
							
							
							
						 
						
							2018-10-05 00:30:25 -04:00  
				
					
						
							
							
								 
						
							
								f3a173b736 
								
							 
						 
						
							
							
								
								Revert "Use signal.alarm() for py2 timeout"  
							
							... 
							
							
							
							This reverts commit 900cef6397 
							
						 
						
							2018-10-05 00:05:46 -04:00  
				
					
						
							
							
								 
						
							
								5c38a5160d 
								
							 
						 
						
							
							
								
								Slight diff tidy  
							
							
							
						 
						
							2018-10-04 23:33:38 -04:00  
				
					
						
							
							
								 
						
							
								dcf9eb0104 
								
							 
						 
						
							
							
								
								Raise an exception on unexpected kwargs  
							
							
							
						 
						
							2018-10-04 23:27:01 -04:00  
				
					
						
							
							
								 
						
							
								dd225e1b9d 
								
							 
						 
						
							
							
								
								Tidy getting of timeout from kwargs  
							
							
							
						 
						
							2018-10-04 23:15:30 -04:00  
				
					
						
							
							
								 
						
							
								900cef6397 
								
							 
						 
						
							
							
								
								Use signal.alarm() for py2 timeout  
							
							
							
						 
						
							2018-10-04 23:11:26 -04:00  
				
					
						
							
							
								 
						
							
								dcd635ba0c 
								
							 
						 
						
							
							
								
								Correct timeout to check every so often  
							
							
							
						 
						
							2018-10-04 23:08:57 -04:00  
				
					
						
							
							
								 
						
							
								33f0338eeb 
								
							 
						 
						
							
							
								
								kill and wait for subprocess before raising TimeoutExpired  
							
							
							
						 
						
							2018-10-04 22:52:51 -04:00  
				
					
						
							
							
								 
						
							
								d5e5433553 
								
							 
						 
						
							
							
								
								Add descriptive message for timeout  
							
							
							
						 
						
							2018-10-04 21:43:41 -04:00  
				
					
						
							
							
								 
						
							
								d2906950ce 
								
							 
						 
						
							
							
								
								monotonic.monotonic() -> time.time()  
							
							
							
						 
						
							2018-10-04 21:26:08 -04:00  
				
					
						
							
							
								 
						
							
								fe7050ba00 
								
							 
						 
						
							
							
								
								Fix lint  
							
							
							
						 
						
							2018-10-04 18:45:30 -03:00  
				
					
						
							
							
								 
						
							
								a1208f5631 
								
							 
						 
						
							
							
								
								Merge pull request  #4075  from nicoddemus/dynamic-fixturenames  
							
							... 
							
							
							
							Fix request.fixturenames to return fixtures created dynamically 
							
						 
						
							2018-10-04 09:21:23 -03:00  
				
					
						
							
							
								 
						
							
								870a93c37b 
								
							 
						 
						
							
							
								
								Actually construct TimeoutExpired  
							
							
							
						 
						
							2018-10-04 01:02:58 -04:00  
				
					
						
							
							
								 
						
							
								96b2ae6654 
								
							 
						 
						
							
							
								
								Initial pass at timeout for subprocessing pytest  
							
							... 
							
							
							
							pytest-dev/pytest#4073  
						
							2018-10-03 23:56:57 -04:00  
				
					
						
							
							
								 
						
							
								212937eb3e 
								
							 
						 
						
							
							
								
								Improve error message when TestCase functions use a parametrized fixture  
							
							... 
							
							
							
							Fix  #2535  
						
							2018-10-03 19:43:46 -03:00  
				
					
						
							
							
								 
						
							
								70c7273640 
								
							 
						 
						
							
							
								
								Fix request.fixturenames to return fixtures created dynamically  
							
							... 
							
							
							
							Fix  #3057  
						
							2018-10-03 18:50:14 -03:00  
				
					
						
							
							
								 
						
							
								e5ab62b1b6 
								
							 
						 
						
							
							
								
								Remove (unused) offset= parameter from deindent()  
							
							
							
						 
						
							2018-10-03 13:33:10 -07:00  
				
					
						
							
							
								 
						
							
								f102ccc8f0 
								
							 
						 
						
							
							
								
								Fix source reindenting by using `textwrap.dedent` directly.  
							
							
							
						 
						
							2018-10-02 16:13:35 -07:00  
				
					
						
							
							
								 
						
							
								1101a20408 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-10-02 18:13:54 -03:00  
				
					
						
							
							
								 
						
							
								1a323fbd3c 
								
							 
						 
						
							
							
								
								Show a warning when non-str is given to Monkeypatch.setenv  
							
							
							
						 
						
							2018-10-01 20:07:07 -03:00  
				
					
						
							
							
								 
						
							
								9d971d33be 
								
							 
						 
						
							
							
								
								Hide internal pytest.warns traceback  
							
							
							
						 
						
							2018-10-01 18:45:08 -03:00  
				
					
						
							
							
								 
						
							
								d24a7e6c5a 
								
							 
						 
						
							
							
								
								Issue warning if Monkeypatch.setenv/delenv receive non-strings in Python 2  
							
							... 
							
							
							
							Fixes the bug described in:
	https://github.com/tox-dev/tox/pull/1025#discussion_r221273830 
Which is more evident when using `unicode_literals`. 
							
						 
						
							2018-10-01 17:05:30 -03:00  
				
					
						
							
							
								 
						
							
								5d2d64c190 
								
							 
						 
						
							
							
								
								Merge pull request  #4057  from jeffreyrack/4051-improve-error-messaging  
							
							... 
							
							
							
							Improve error messaging when invalid syntax is passed to the -m option 
							
						 
						
							2018-10-01 07:16:59 +02:00  
				
					
						
							
							
								 
						
							
								c2179c3127 
								
							 
						 
						
							
							
								
								Improve error messaging when invalid syntax is passed to the -m option  
							
							
							
						 
						
							2018-09-30 18:34:56 -07:00  
				
					
						
							
							
								 
						
							
								d8d7f73e1c 
								
							 
						 
						
							
							
								
								Merge pull request  #4045  from nicoddemus/root-conftest-warning-workaround-4039  
							
							... 
							
							
							
							Do not issue non-top-level conftest warning when --pyargs is used 
							
						 
						
							2018-09-27 09:26:11 -03:00  
				
					
						
							
							
								 
						
							
								3c23b5b010 
								
							 
						 
						
							
							
								
								Merge pull request  #4037  from nicoddemus/deprecate-item-warnings-captured-hook  
							
							... 
							
							
							
							Document that item parameter of pytest_warning_captured hook is deprecated 
							
						 
						
							2018-09-27 13:20:26 +02:00  
				
					
						
							
							
								 
						
							
								d2fc7ca6e0 
								
							 
						 
						
							
							
								
								Merge pull request  #4041  from Zac-HD/user-properties-type  
							
							... 
							
							
							
							Ensure user_properties is a list 
							
						 
						
							2018-09-27 08:04:30 -03:00  
				
					
						
							
							
								 
						
							
								32c5a113e2 
								
							 
						 
						
							
							
								
								Do not issue non-top-level conftest warning when --pyargs is used  
							
							... 
							
							
							
							Fix  #4039  
						
							2018-09-26 12:02:08 -03:00  
				
					
						
							
							
								 
						
							
								a089a9577e 
								
							 
						 
						
							
							
								
								Succinct definition of user_properties  
							
							
							
						 
						
							2018-09-26 22:40:11 +10:00  
				
					
						
							
							
								 
						
							
								6be2136f20 
								
							 
						 
						
							
							
								
								Ensure user_properties is a list  
							
							
							
						 
						
							2018-09-26 22:04:50 +10:00  
				
					
						
							
							
								 
						
							
								f9ab81a493 
								
							 
						 
						
							
							
								
								Exclude empty reports for passed tests  
							
							
							
						 
						
							2018-09-26 11:55:39 +03:00  
				
					
						
							
							
								 
						
							
								1636522563 
								
							 
						 
						
							
							
								
								Document that item parameter of pytest_warning_captured hook is deprecated  
							
							... 
							
							
							
							Our policy is to not deprecate features during bugfix releases, but in this
case I believe it makes sense as we are only documenting it as deprecated,
without issuing warnings which might potentially break test suites.
This will get the word out that hook implementers should not use this parameter
at all.
Fix  #4036  
							
						 
						
							2018-09-25 17:38:22 -03:00  
				
					
						
							
							
								 
						
							
								956b3aca97 
								
							 
						 
						
							
							
								
								Revert patching of breakpointhook as it appears to do nothing  
							
							
							
						 
						
							2018-09-23 18:39:50 -07:00  
				
					
						
							
							
								 
						
							
								c61ff31ffa 
								
							 
						 
						
							
							
								
								Fix   #3539 : reload module with assertion rewrite import hook  
							
							
							
						 
						
							2018-09-23 13:05:55 +02:00  
				
					
						
							
							
								 
						
							
								e03a19f88d 
								
							 
						 
						
							
							
								
								Merge pull request  #4021  from nicoddemus/merge-master-into-features  
							
							... 
							
							
							
							Merge master into features 
							
						 
						
							2018-09-23 11:57:05 +02:00  
				
					
						
							
							
								 
						
							
								56d0b5a7e2 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-09-22 18:14:36 -03:00  
				
					
						
							
							
								 
						
							
								c30184709d 
								
							 
						 
						
							
							
								
								Show deprecation warnings even if filters are customized  
							
							... 
							
							
							
							Fix  #4013  
						
							2018-09-22 10:25:57 -03:00  
				
					
						
							
							
								 
						
							
								9b382ed16c 
								
							 
						 
						
							
							
								
								Fix typo in docstring  
							
							
							
						 
						
							2018-09-21 17:11:15 +01:00  
				
					
						
							
							
								 
						
							
								f02dbaf97f 
								
							 
						 
						
							
							
								
								Merge pull request  #4010  from nicoddemus/package-len-error-3749  
							
							... 
							
							
							
							Fix 'Package has no len()' error during collection 
							
						 
						
							2018-09-21 07:40:20 +02:00  
				
					
						
							
							
								 
						
							
								41f6ea13ce 
								
							 
						 
						
							
							
								
								Fix 'Package has no len()' error during collection  
							
							... 
							
							
							
							Fix  #3749  
						
							2018-09-20 17:53:21 -03:00  
				
					
						
							
							
								 
						
							
								f6eb39df33 
								
							 
						 
						
							
							
								
								Merge pull request  #4001  from asottile/fix_bytes_repr_text_mix_python_2  
							
							... 
							
							
							
							Fix UnicodeDecodeError in assertion with mixed non-ascii bytes repr + text 
							
						 
						
							2018-09-20 22:16:37 +02:00  
				
					
						
							
							
								 
						
							
								7122fa5613 
								
							 
						 
						
							
							
								
								Fix UnicodeDecodeError in assertion with mixed non-ascii bytes repr + text  
							
							
							
						 
						
							2018-09-19 20:24:00 -07:00  
				
					
						
							
							
								 
						
							
								7aff81739e 
								
							 
						 
						
							
							
								
								Merge pull request  #3998  from blueyed/logging-del  
							
							... 
							
							
							
							logging: del item.catch_log_handler only in teardown 
							
						 
						
							2018-09-19 20:07:19 -03:00  
				
					
						
							
							
								 
						
							
								27772f67c0 
								
							 
						 
						
							
							
								
								Merge pull request  #3987  from nicoddemus/fix-find-scope-3941  
							
							... 
							
							
							
							Fix scope determination with indirect parameters 
							
						 
						
							2018-09-19 20:06:45 -03:00  
				
					
						
							
							
								 
						
							
								e7eb7e799b 
								
							 
						 
						
							
							
								
								logging: del item.catch_log_handler only in teardown  
							
							... 
							
							
							
							Without this caplog.record_tuples etc is not available anymore when using
`--pdb`. 
							
						 
						
							2018-09-19 17:17:47 +02:00  
				
					
						
							
							
								 
						
							
								18cc74b8d0 
								
							 
						 
						
							
							
								
								Remove useless comment  
							
							
							
						 
						
							2018-09-19 15:18:37 +02:00  
				
					
						
							
							
								 
						
							
								7f48f552c1 
								
							 
						 
						
							
							
								
								Fix linting  
							
							
							
						 
						
							2018-09-19 10:18:05 -03:00  
				
					
						
							
							
								 
						
							
								1e2e65f0fa 
								
							 
						 
						
							
							
								
								Add references to the relevant Python issues  
							
							
							
						 
						
							2018-09-19 08:20:23 -03:00  
				
					
						
							
							
								 
						
							
								e967d4587a 
								
							 
						 
						
							
							
								
								Add support for logging in collection-phase  
							
							... 
							
							
							
							The logging plugin does not output log messages generated during the
collection-phase when live-logging is enabled. This fixes this.
Fixes  #3964  
							
						 
						
							2018-09-18 20:18:24 +02:00  
				
					
						
							
							
								 
						
							
								a79dc12f1e 
								
							 
						 
						
							
							
								
								Merge pull request  #3970  from sambarluc/raise_on_empty_parameterset  
							
							... 
							
							
							
							Raise exception if parametrize collects an empty parameter set 
							
						 
						
							2018-09-18 08:11:34 -03:00  
				
					
						
							
							
								 
						
							
								37d2469266 
								
							 
						 
						
							
							
								
								Use a PurePath instance to do matching against patterns in assertion rewrite  
							
							... 
							
							
							
							This way we don't need to have real file system path, which prevents the
original #3973  bug. 
							
						 
						
							2018-09-17 20:29:09 -03:00  
				
					
						
							
							
								 
						
							
								1df6d28080 
								
							 
						 
						
							
							
								
								Fix assertion rewriter crash if cwd changes mid-testing  
							
							... 
							
							
							
							Unfortunately we need to get a `py.path.local` object to perform the fnmatch
operation, it is different from the standard `fnmatch` module because it
implements its own custom logic. So we need to use `py.path` to perform
the fnmatch for backward compatibility reasons.
Ideally we should be able to use a "pure path" in `pathlib` terms (a path
not bound to the file system), but we don't have those in pylib.
Fix  #3973  
							
						 
						
							2018-09-17 20:04:44 -03:00  
				
					
						
							
							
								 
						
							
								05155e4db0 
								
							 
						 
						
							
							
								
								Fail at parametrize option for empty parameter set  
							
							... 
							
							
							
							Optionally raise an exception when parametrize collects no arguments.
Provide the name of the test causing the failure in the exception
message.
See: #3849  
							
						 
						
							2018-09-15 09:18:03 +02:00  
				
					
						
							
							
								 
						
							
								86a14d007d 
								
							 
						 
						
							
							
								
								Fix scope determination with indirect parameters  
							
							... 
							
							
							
							Fix  #3941  
						
							2018-09-14 21:33:59 -03:00  
				
					
						
							
							
								 
						
							
								ae8f3695b5 
								
							 
						 
						
							
							
								
								Move UnformattedWarning to _pytest.warning_types  
							
							
							
						 
						
							2018-09-14 15:31:20 -03:00  
				
					
						
							
							
								 
						
							
								9aa6b0903b 
								
							 
						 
						
							
							
								
								.pytest_cache is now automatically ignored by Git  
							
							
							
						 
						
							2018-09-14 15:16:40 -03:00  
				
					
						
							
							
								 
						
							
								da6830f19b 
								
							 
						 
						
							
							
								
								Introduce UnformattedWarning to keep warning types and messages in _pytest.deprecated  
							
							
							
						 
						
							2018-09-14 14:49:05 -03:00  
				
					
						
							
							
								 
						
							
								32ee0b9c88 
								
							 
						 
						
							
							
								
								Move warning messages to _pytest.deprecated  
							
							
							
						 
						
							2018-09-13 15:56:50 -03:00  
				
					
						
							
							
								 
						
							
								feb8240410 
								
							 
						 
						
							
							
								
								Use self.Function again during collection  
							
							
							
						 
						
							2018-09-13 15:44:02 -03:00  
				
					
						
							
							
								 
						
							
								b7dd9154c3 
								
							 
						 
						
							
							
								
								Deprecate custom node types during collection by using special names  
							
							
							
						 
						
							2018-09-13 14:55:28 -03:00  
				
					
						
							
							
								 
						
							
								482bd5efd2 
								
							 
						 
						
							
							
								
								Show deprecation warning for cached_setup  
							
							
							
						 
						
							2018-09-13 14:25:46 -03:00  
				
					
						
							
							
								 
						
							
								bf074b37a3 
								
							 
						 
						
							
							
								
								Show deprecation warnings for compat properties  
							
							... 
							
							
							
							Fix  #3616  
						
							2018-09-13 14:10:30 -03:00  
				
					
						
							
							
								 
						
							
								a0ce9a4441 
								
							 
						 
						
							
							
								
								remove the legacy code about im_func and generalize using fix and compat.getimfunc  
							
							
							
						 
						
							2018-09-13 15:38:36 +02:00  
				
					
						
							
							
								 
						
							
								ab40696007 
								
							 
						 
						
							
							
								
								-W now takes precedence over filters in ini files  
							
							... 
							
							
							
							Fix  #3946  
						
							2018-09-11 19:00:42 +02:00  
				
					
						
							
							
								 
						
							
								69b34f7658 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into release-3.8.0  
							
							
							
						 
						
							2018-09-05 18:02:02 -03:00  
				
					
						
							
							
								 
						
							
								531b76a513 
								
							 
						 
						
							
							
								
								Merge pull request  #3931  from nicoddemus/internal-warnings  
							
							... 
							
							
							
							Use standard warnings for internal pytest warnings 
							
						 
						
							2018-09-05 14:05:52 -03:00  
				
					
						
							
							
								 
						
							
								f63c683faa 
								
							 
						 
						
							
							
								
								No longer escape regex in pytest.mark.filterwarnings  
							
							... 
							
							
							
							Fix  #3936  
						
							2018-09-05 10:20:25 -03:00  
				
					
						
							
							
								 
						
							
								410d5762c0 
								
							 
						 
						
							
							
								
								Merge pull request  #3919  from fabioz/master  
							
							... 
							
							
							
							Improve import performance of assertion rewrite. Fixes  #3918 . 
							
						 
						
							2018-09-05 14:33:40 +02:00  
				
					
						
							
							
								 
						
							
								f42b5019ec 
								
							 
						 
						
							
							
								
								Make code_or_warning parameter private for backward-compatibility  
							
							
							
						 
						
							2018-09-04 18:53:58 -03:00  
				
					
						
							
							
								 
						
							
								2e0a7cf78d 
								
							 
						 
						
							
							
								
								Revert to having just "runtest" as "when" parameter of the pytest_warning_captured hook  
							
							
							
						 
						
							2018-09-04 17:01:23 -03:00  
				
					
						
							
							
								 
						
							
								5a52acaa92 
								
							 
						 
						
							
							
								
								Make config no longer optional in parametrize id functions  
							
							
							
						 
						
							2018-09-04 16:55:52 -03:00  
				
					
						
							
							
								 
						
							
								6d497f2c77 
								
							 
						 
						
							
							
								
								Fix stacklevel for warning about Metafunc.addcall  
							
							
							
						 
						
							2018-09-04 16:50:24 -03:00  
				
					
						
							
							
								 
						
							
								b7560a8808 
								
							 
						 
						
							
							
								
								Keep backward compatibility for code as kw in Node.warn  
							
							
							
						 
						
							2018-09-04 16:48:21 -03:00  
				
					
						
							
							
								 
						
							
								d3ca739c00 
								
							 
						 
						
							
							
								
								Use explicit instances when calling warnings.warn_explicit  
							
							
							
						 
						
							2018-09-04 16:29:48 -03:00  
				
					
						
							
							
								 
						
							
								3db76ccf3d 
								
							 
						 
						
							
							
								
								Fix Cache.warn function to issue a "config" warning  
							
							
							
						 
						
							2018-09-04 15:53:17 -03:00  
				
					
						
							
							
								 
						
							
								438f7a1254 
								
							 
						 
						
							
							
								
								Add "setup", "call" and "teardown" values to "when" parameter of pytest_warning_captured hook  
							
							
							
						 
						
							2018-09-04 15:53:17 -03:00  
				
					
						
							
							
								 
						
							
								47bf58d69e 
								
							 
						 
						
							
							
								
								Make Node.warn support two forms, new and deprecated  
							
							... 
							
							
							
							As suggested during review, it now accepts two forms:
Node.warn(warning_instance)  (recommended)
Node.warn(code, message)  (deprecated) 
							
						 
						
							2018-09-04 15:53:17 -03:00  
				
					
						
							
							
								 
						
							
								a054aa4797 
								
							 
						 
						
							
							
								
								Issue assert rewrite warning if tuple >=1 as suggested in review  
							
							
							
						 
						
							2018-09-04 14:45:48 -03:00  
				
					
						
							
							
								 
						
							
								022c58bf64 
								
							 
						 
						
							
							
								
								Revert pytest_terminal_summary(tryfirst) in warnings module as this breaks tests  
							
							
							
						 
						
							2018-09-04 14:26:34 -03:00  
				
					
						
							
							
								 
						
							
								b42518acd5 
								
							 
						 
						
							
							
								
								Change std_warn to receive a single warning instance, addressed review suggestions  
							
							
							
						 
						
							2018-09-04 14:20:42 -03:00  
				
					
						
							
							
								 
						
							
								284a2d110f 
								
							 
						 
						
							
							
								
								Move warnings import to top level  
							
							
							
						 
						
							2018-09-04 13:46:33 -03:00  
				
					
						
							
							
								 
						
							
								9ae0a3cd85 
								
							 
						 
						
							
							
								
								Do not trigger warning about tuples being always True if the tuple has size != 2  
							
							
							
						 
						
							2018-09-04 13:41:11 -03:00  
				
					
						
							
							
								 
						
							
								615c671434 
								
							 
						 
						
							
							
								
								Connect string literals  
							
							
							
						 
						
							2018-09-04 13:34:05 -03:00  
				
					
						
							
							
								 
						
							
								016f8f1536 
								
							 
						 
						
							
							
								
								Improve get_fslocation_from_item's docstring  
							
							
							
						 
						
							2018-09-04 11:48:11 -03:00  
				
					
						
							
							
								 
						
							
								e9417be9df 
								
							 
						 
						
							
							
								
								Add comment about deprecation warnings being shown by default  
							
							
							
						 
						
							2018-09-04 11:35:35 -03:00  
				
					
						
							
							
								 
						
							
								c304998ed7 
								
							 
						 
						
							
							
								
								Remove commented out code  
							
							
							
						 
						
							2018-09-04 11:35:35 -03:00  
				
					
						
							
							
								 
						
							
								415a62e373 
								
							 
						 
						
							
							
								
								Fix typo in PytestExperimentalApiWarning  
							
							
							
						 
						
							2018-09-04 11:35:35 -03:00  
				
					
						
							
							
								 
						
							
								8ce3aeadbf 
								
							 
						 
						
							
							
								
								Move PytestExerimentalApiWarning to warning_types  
							
							
							
						 
						
							2018-09-04 11:35:35 -03:00  
				
					
						
							
							
								 
						
							
								56d414177a 
								
							 
						 
						
							
							
								
								Remove nodeid from messages for warnings generated by standard warnings  
							
							... 
							
							
							
							Standard warnings already contain the proper location, so we don't need
to also print the node id 
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								0fffa6ba2f 
								
							 
						 
						
							
							
								
								Implement hack to issue warnings during config  
							
							... 
							
							
							
							Once we can capture warnings during the config stage, we can
then get rid of this function
Related to #2891  
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								9965ed84da 
								
							 
						 
						
							
							
								
								Show deprecation warnings by default if no other filters are configured  
							
							... 
							
							
							
							Fix  #2908  
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								208dd3aad1 
								
							 
						 
						
							
							
								
								Add docs for internal warnings and introduce PytestDeprecationWarning  
							
							... 
							
							
							
							Fix  #2477  
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								19a01c9849 
								
							 
						 
						
							
							
								
								Make PytestWarning and RemovedInPytest4Warning part of the public API  
							
							
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								78ac7d99f5 
								
							 
						 
						
							
							
								
								Deprecate Config.warn and Node.warn, replaced by standard warnings  
							
							
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								0c8dbdcd92 
								
							 
						 
						
							
							
								
								Fix existing tests now that we are using standard warnings  
							
							
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								8e4501ee29 
								
							 
						 
						
							
							
								
								Use std_warn for warning about applying marks directly to parameters  
							
							
							
						 
						
							2018-09-04 11:35:34 -03:00  
				
					
						
							
							
								 
						
							
								0100f61b62 
								
							 
						 
						
							
							
								
								Start the laywork to capture standard warnings  
							
							
							
						 
						
							2018-09-04 11:35:15 -03:00  
				
					
						
							
							
								 
						
							
								1a9d913ee1 
								
							 
						 
						
							
							
								
								Capture and display warnings during collection  
							
							... 
							
							
							
							Fix  #3251  
						
							2018-09-04 11:35:06 -03:00  
				
					
						
							
							
								 
						
							
								51e32cf7cc 
								
							 
						 
						
							
							
								
								Remove Python 2.6 specific warning  
							
							
							
						 
						
							2018-09-04 11:35:06 -03:00  
				
					
						
							
							
								 
						
							
								3fcc4cdbd5 
								
							 
						 
						
							
							
								
								Make terminal capture pytest_warning_capture  
							
							... 
							
							
							
							pytest_logwarning is no longer emitted by the warnings plugin,
only ever emitted from .warn() functions in config and item 
							
						 
						
							2018-09-04 11:35:06 -03:00  
				
					
						
							
							
								 
						
							
								ffd47ceefc 
								
							 
						 
						
							
							
								
								Implement new pytest_warning_captured hook  
							
							
							
						 
						
							2018-09-04 11:35:00 -03:00  
				
					
						
							
							
								 
						
							
								10f21b423a 
								
							 
						 
						
							
							
								
								Remove assert for "reprec" because this is no longer set on the pluginmanager  
							
							... 
							
							
							
							It seems this has no effect since `pluggy` was developed as a separate
library. 
							
						 
						
							2018-09-04 11:35:00 -03:00  
				
					
						
							
							
								 
						
							
								eec7081b8d 
								
							 
						 
						
							
							
								
								Make AssertionRewritingrHook use imp_find_module  
							
							
							
						 
						
							2018-09-03 10:18:25 -03:00  
				
					
						
							
							
								 
						
							
								b01704cce1 
								
							 
						 
						
							
							
								
								Fix exit code for command line errors  
							
							... 
							
							
							
							Fixes  #3913  
						
							2018-09-03 04:16:35 +00:00  
				
					
						
							
							
								 
						
							
								a13c6a84df 
								
							 
						 
						
							
							
								
								Mention explicitly when pytest.skip and pytest.xfail can be called  
							
							... 
							
							
							
							Fix  #3219  
						
							2018-09-02 10:42:05 -03:00  
				
					
						
							
							
								 
						
							
								90c00dfd54 
								
							 
						 
						
							
							
								
								Use EXIT_USAGEERROR instead of magic number  
							
							
							
						 
						
							2018-09-01 12:03:28 -03:00  
				
					
						
							
							
								 
						
							
								4675912d89 
								
							 
						 
						
							
							
								
								Add tests for early rewrite bailout code and handle patterns with subdirectories  
							
							
							
						 
						
							2018-09-01 10:59:21 -03:00  
				
					
						
							
							
								 
						
							
								d53e449296 
								
							 
						 
						
							
							
								
								Improve performance of assertion rewriting.  Fixes   #3918  
							
							
							
						 
						
							2018-08-31 12:27:08 -03:00  
				
					
						
							
							
								 
						
							
								96aad2983b 
								
							 
						 
						
							
							
								
								Move code to get width of current line to a function  
							
							
							
						 
						
							2018-08-30 21:16:35 -03:00  
				
					
						
							
							
								 
						
							
								c18a5b5179 
								
							 
						 
						
							
							
								
								try to be backwards compat  
							
							
							
						 
						
							2018-08-30 19:06:20 -05:00  
				
					
						
							
							
								 
						
							
								29c5ac71bc 
								
							 
						 
						
							
							
								
								improve line width estimate  
							
							
							
						 
						
							2018-08-30 18:59:58 -05:00  
				
					
						
							
							
								 
						
							
								11e591e442 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-08-30 19:55:23 -03:00  
				
					
						
							
							
								 
						
							
								3035b2724d 
								
							 
						 
						
							
							
								
								T3853:removed needless message printed with --failed-first,--last-failed and no failed tests  
							
							
							
						 
						
							2018-08-30 16:01:42 +05:30  
				
					
						
							
							
								 
						
							
								103d980b2d 
								
							 
						 
						
							
							
								
								Use https, save a redirect  
							
							
							
						 
						
							2018-08-28 14:41:13 -07:00  
				
					
						
							
							
								 
						
							
								28c3ef1c77 
								
							 
						 
						
							
							
								
								Use https, save a redirect, fix hostname  
							
							
							
						 
						
							2018-08-28 14:40:20 -07:00  
				
					
						
							
							
								 
						
							
								67c3c28877 
								
							 
						 
						
							
							
								
								Use https, save a redirect  
							
							
							
						 
						
							2018-08-28 14:39:32 -07:00  
				
					
						
							
							
								 
						
							
								e040fd20a3 
								
							 
						 
						
							
							
								
								Use https, save a redirect  
							
							
							
						 
						
							2018-08-28 14:38:55 -07:00  
				
					
						
							
							
								 
						
							
								10c1c7c41a 
								
							 
						 
						
							
							
								
								Merge pull request  #3895  from nicoddemus/issue-3506  
							
							... 
							
							
							
							Avoid possible infinite recursion when writing pyc files in assert rewrite 
							
						 
						
							2018-08-28 18:16:10 -03:00  
				
					
						
							
							
								 
						
							
								b77e533693 
								
							 
						 
						
							
							
								
								Merge pull request  #3893  from jirikuncar/3892-macos  
							
							... 
							
							
							
							travis: run tests on macOS 
							
						 
						
							2018-08-28 17:06:17 -03:00  
				
					
						
							
							
								 
						
							
								a605ad4d11 
								
							 
						 
						
							
							
								
								Merge pull request  #3880  from jeffreyrack/3829-progress_display_mode  
							
							... 
							
							
							
							#3829  -- Add the ability to show test progress as number of tests completed instead of a percent. 
						
							2018-08-28 16:54:14 -03:00  
				
					
						
							
							
								 
						
							
								4b94760c8e 
								
							 
						 
						
							
							
								
								Removed spacing in count display.  
							
							
							
						 
						
							2018-08-27 20:23:17 -07:00  
				
					
						
							
							
								 
						
							
								82a7ca9615 
								
							 
						 
						
							
							
								
								Avoid possible infinite recursion when writing pyc files in assert rewrite  
							
							... 
							
							
							
							What happens is that atomic_write on Python 2.7 on Windows will try
to convert the paths to unicode, but this triggers the import of
the encoding module for the file system codec, which in turn triggers
the rewrite, which in turn again tries to import the module, and so on.
This short-circuits the cases where we try to import another file when
writing a pyc file; I don't expect this to affect anything because
the only modules that could be affected are those imported by
atomic_writes.
Fix  #3506  
							
						 
						
							2018-08-27 21:29:45 -03:00  
				
					
						
							
							
								 
						
							
								2a059b1c1b 
								
							 
						 
						
							
							
								
								Merge pull request  #3885  from nicoddemus/bad-output-classic  
							
							... 
							
							
							
							Fix bad console output when using console_output_style=classic 
							
						 
						
							2018-08-27 19:07:02 -03:00  
				
					
						
							
							
								 
						
							
								ab5af524a4 
								
							 
						 
						
							
							
								
								Fix macOS specific code that uses capturemanager.  
							
							... 
							
							
							
							https://github.com/pytest-dev/pytest/issues/3888#issuecomment-416206606 
closes  #3888 
Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> 
						
							2018-08-27 16:07:59 +02:00  
				
					
						
							
							
								 
						
							
								8f4685e024 
								
							 
						 
						
							
							
								
								Move count display style to be part of console_output_style, fixed test progress for count console output style.  
							
							
							
						 
						
							2018-08-26 19:21:00 -07:00  
				
					
						
							
							
								 
						
							
								47bb53f5cb 
								
							 
						 
						
							
							
								
								Cache now obeys -q when showing summary for --lf and --ff  
							
							... 
							
							
							
							Related to #3853  
							
						 
						
							2018-08-26 18:08:19 -03:00  
				
					
						
							
							
								 
						
							
								6991a16edb 
								
							 
						 
						
							
							
								
								Fix bad console output when using console_output_style=classic  
							
							... 
							
							
							
							Fix  #3883  
						
							2018-08-26 17:12:55 -03:00  
				
					
						
							
							
								 
						
							
								2f2d5861bb 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-08-26 16:45:00 -03:00  
				
					
						
							
							
								 
						
							
								de6f2c0336 
								
							 
						 
						
							
							
								
								Collect tests from __init__.py files if they match 'python_files'  
							
							... 
							
							
							
							Fix  #3773  
						
							2018-08-25 11:18:52 -03:00  
				
					
						
							
							
								 
						
							
								c336449729 
								
							 
						 
						
							
							
								
								Make linting happy. Argh.  
							
							
							
						 
						
							2018-08-24 18:05:35 -07:00  
				
					
						
							
							
								 
						
							
								1e4ecda884 
								
							 
						 
						
							
							
								
								Fix the package fixture ordering in Windows.  
							
							
							
						 
						
							2018-08-24 18:01:38 -07:00  
				
					
						
							
							
								 
						
							
								3396225f74 
								
							 
						 
						
							
							
								
								Merge branch 'master' of github.com:pytest-dev/pytest into fix-3854  
							
							
							
						 
						
							2018-08-24 11:47:24 -07:00  
				
					
						
							
							
								 
						
							
								72e6482994 
								
							 
						 
						
							
							
								
								Make linting happy.  
							
							
							
						 
						
							2018-08-23 22:58:36 -07:00  
				
					
						
							
							
								 
						
							
								93f783228c 
								
							 
						 
						
							
							
								
								Add the progress_display_mode ini option  
							
							
							
						 
						
							2018-08-23 22:56:25 -07:00  
				
					
						
							
							
								 
						
							
								5f8b50c094 
								
							 
						 
						
							
							
								
								Address  #3796  and add a test for it.  
							
							
							
						 
						
							2018-08-23 22:48:44 -07:00  
				
					
						
							
							
								 
						
							
								99e31f6fb1 
								
							 
						 
						
							
							
								
								Use `bytes` directly instead of `binary_type`  
							
							... 
							
							
							
							`bytes` is an alias for `str` in python2.6+ 
							
						 
						
							2018-08-23 18:55:21 -07:00  
				
					
						
							
							
								 
						
							
								f2e35c8c4f 
								
							 
						 
						
							
							
								
								Merge pull request  #3859  from asottile/pyupgrade_1_4  
							
							... 
							
							
							
							Some pyupgrade 1.4.x changes 
							
						 
						
							2018-08-23 18:32:53 -07:00  
				
					
						
							
							
								 
						
							
								d54aa8ce13 
								
							 
						 
						
							
							
								
								Merge pull request  #3848  from wimglenn/pytester_unicode_bugfixes  
							
							... 
							
							
							
							fixed a bunch of unicode bugs in pytester.py 
							
						 
						
							2018-08-23 13:45:49 -05:00  
				
					
						
							
							
								 
						
							
								7099ea9bb0 
								
							 
						 
						
							
							
								
								py.builtin._reraise -> six.reraise  
							
							
							
						 
						
							2018-08-22 23:00:58 -07:00  
				
					
						
							
							
								 
						
							
								c2cd337886 
								
							 
						 
						
							
							
								
								py.builtin.exec_ => six.exec_  
							
							
							
						 
						
							2018-08-22 23:00:06 -07:00  
				
					
						
							
							
								 
						
							
								0fc4a806e5 
								
							 
						 
						
							
							
								
								py.builtins._totext -> string literals or six.text_type  
							
							
							
						 
						
							2018-08-22 23:00:04 -07:00  
				
					
						
							
							
								 
						
							
								4d3c1ab4f0 
								
							 
						 
						
							
							
								
								Fixes   #3854  
							
							
							
						 
						
							2018-08-22 21:42:59 -07:00  
				
					
						
							
							
								 
						
							
								e4f76f6350 
								
							 
						 
						
							
							
								
								Merge branch 'master' of github.com:pytest-dev/pytest into fix-3854  
							
							
							
						 
						
							2018-08-22 20:36:52 -07:00  
				
					
						
							
							
								 
						
							
								0d65783dce 
								
							 
						 
						
							
							
								
								Fix unicode errors when changing to .format(...)  
							
							
							
						 
						
							2018-08-22 19:00:43 -07:00  
				
					
						
							
							
								 
						
							
								917b99e438 
								
							 
						 
						
							
							
								
								More unicode whack-a-mole  
							
							... 
							
							
							
							It seems pytest's very comprehensive CI sniffed out a few other places with similar bugs.  Ideally we should find all the places where args are not stringy and solve it at the source, but who knows how many people are relying on the implicit string conversion.  See [here](https://github.com/pytest-dev/pytest/blob/master/src/_pytest/config/__init__.py#L160-L166 ) for one such problem area (args with a single py.path.local instance is converted here, but a list or tuple containing some are not). 
							
						 
						
							2018-08-22 13:40:21 -05:00  
				
					
						
							
							
								 
						
							
								2137e2b15b 
								
							 
						 
						
							
							
								
								Merge pull request  #3846  from nicoddemus/issue-3843  
							
							... 
							
							
							
							Fix collection error when tests is specified with --doctest-modules 
							
						 
						
							2018-08-22 08:17:07 -03:00  
				
					
						
							
							
								 
						
							
								89446af51e 
								
							 
						 
						
							
							
								
								fixed a bunch of unicode bugs in pytester.py  
							
							
							
						 
						
							2018-08-22 01:30:23 -05:00  
				
					
						
							
							
								 
						
							
								3b521bedf8 
								
							 
						 
						
							
							
								
								Merge pull request  #3841  from sankt-petersbug/fix-3816  
							
							... 
							
							
							
							Fix '--show-capture=no' capture teardown logs 
							
						 
						
							2018-08-22 07:16:53 +02:00  
				
					
						
							
							
								 
						
							
								07a560ff24 
								
							 
						 
						
							
							
								
								Fix collection error when tests is specified with --doctest-modules  
							
							... 
							
							
							
							The problem was that _matchnodes would receive two items: [DoctestModule, Module]. It would then collect the first one, *cache it*, and fail to match against the name in the command line. Next, it would reuse the cached item (DoctestModule) instead of collecting the Module which would eventually find the "test" name on it.
Added the type of the node to the cache key to avoid this problem, although I'm not a big fan of caches that have different key types.
Fix  #3843  
							
						 
						
							2018-08-21 21:02:46 -03:00  
				
					
						
							
							
								 
						
							
								f1079a8222 
								
							 
						 
						
							
							
								
								Merge pull request  #3832  from Sup3rGeo/bugfix/capsys-with-cli-logging  
							
							... 
							
							
							
							Bugfix/capsys with cli logging (again) 
							
						 
						
							2018-08-21 20:12:31 -03:00  
				
					
						
							
							
								 
						
							
								044d2b8e6e 
								
							 
						 
						
							
							
								
								Merge pull request  #3838  from wimglenn/runresult_xfail  
							
							... 
							
							
							
							Support xfailed and xpassed outcomes in RunResult. 
							
						 
						
							2018-08-20 20:01:51 -03:00  
				
					
						
							
							
								 
						
							
								223eef6261 
								
							 
						 
						
							
							
								
								Fix '--show-capture=no' capture teardown logs  
							
							... 
							
							
							
							Add a check before printing teardown logs.
'print_teardown_sections' method does not check '--show-capture' option
value, and teardown logs are always printed.
Resolves : #3816  
							
						 
						
							2018-08-20 15:01:21 -05:00  
				
					
						
							
							
								 
						
							
								43657f252f 
								
							 
						 
						
							
							
								
								Merge pull request  #3830  from nicoddemus/capfd-fixture-capture  
							
							... 
							
							
							
							Fixtures during teardown can use capsys and capfd to get output from tests 
							
						 
						
							2018-08-20 15:32:45 -03:00  
				
					
						
							
							
								 
						
							
								70ebab3537 
								
							 
						 
						
							
							
								
								Renamed snap_global_capture to read_global_capture.  
							
							
							
						 
						
							2018-08-20 17:48:14 +02:00  
				
					
						
							
							
								 
						
							
								539a22c750 
								
							 
						 
						
							
							
								
								Added support for xfailed and xpassed outcomes to the ``pytester.RunResult.assert_outcomes`` signature.  
							
							
							
						 
						
							2018-08-20 01:24:19 -05:00  
				
					
						
							
							
								 
						
							
								e620798d33 
								
							 
						 
						
							
							
								
								more autodocs for pytester  
							
							
							
						 
						
							2018-08-19 23:21:45 -05:00  
				
					
						
							
							
								 
						
							
								7ea4992f16 
								
							 
						 
						
							
							
								
								Fixed linting.  
							
							
							
						 
						
							2018-08-19 15:46:02 +02:00  
				
					
						
							
							
								 
						
							
								0564b52c0e 
								
							 
						 
						
							
							
								
								Fixed integration with other modules/tests  
							
							
							
						 
						
							2018-08-19 15:26:57 +02:00  
				
					
						
							
							
								 
						
							
								8b2c91836b 
								
							 
						 
						
							
							
								
								Fixed activation and used just runtest_protocol hook  
							
							
							
						 
						
							2018-08-19 14:30:50 +02:00  
				
					
						
							
							
								 
						
							
								7d9b198f73 
								
							 
						 
						
							
							
								
								Refactoring: Separated suspend from snapping (stopped always snapping when suspending - solves bug but still missing tests), reorganized functions and context managers.  
							
							
							
						 
						
							2018-08-19 02:32:36 +02:00  
				
					
						
							
							
								 
						
							
								c64a8c9c7f 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-08-18 15:54:53 -03:00  
				
					
						
							
							
								 
						
							
								f4c5994d27 
								
							 
						 
						
							
							
								
								Fixtures during teardown can use capsys and capfd to get output from tests  
							
							... 
							
							
							
							Fix  #3033  
						
							2018-08-18 14:46:24 -03:00  
				
					
						
							
							
								 
						
							
								273670b2a2 
								
							 
						 
						
							
							
								
								Fixes capfd so data is available after teardown.  
							
							
							
						 
						
							2018-08-18 14:11:04 -03:00  
				
					
						
							
							
								 
						
							
								28aff051ab 
								
							 
						 
						
							
							
								
								Merge pull request  #3822  from Sup3rGeo/bugfix/capsys-with-cli-logging  
							
							... 
							
							
							
							Bugfix/capsys with cli logging 
							
						 
						
							2018-08-18 14:06:27 -03:00  
				
					
						
							
							
								 
						
							
								5cf7d1dba2 
								
							 
						 
						
							
							
								
								"suspend" method of capture fixture private  
							
							... 
							
							
							
							Also change the context-manager to global_and_fixture_disabled to
better convey its meaning 
							
						 
						
							2018-08-18 11:38:08 -03:00  
				
					
						
							
							
								 
						
							
								f674217c43 
								
							 
						 
						
							
							
								
								Moved dummy_context_manager to compat module  
							
							
							
						 
						
							2018-08-18 11:15:58 -03:00  
				
					
						
							
							
								 
						
							
								9f7345d663 
								
							 
						 
						
							
							
								
								Avoid leaving a reference to the last item on CaptureManager  
							
							
							
						 
						
							2018-08-18 11:08:03 -03:00  
				
					
						
							
							
								 
						
							
								eb2d074530 
								
							 
						 
						
							
							
								
								Black changes.  
							
							
							
						 
						
							2018-08-18 14:27:09 +02:00  
				
					
						
							
							
								 
						
							
								9fa7745795 
								
							 
						 
						
							
							
								
								Refactor, tests passing.  
							
							
							
						 
						
							2018-08-18 13:40:08 +02:00  
				
					
						
							
							
								 
						
							
								14db2f91ba 
								
							 
						 
						
							
							
								
								Fixed global not called if no capsys fixture. Using now capsys context manager as well.  
							
							
							
						 
						
							2018-08-18 12:16:47 +02:00  
				
					
						
							
							
								 
						
							
								c3e494f6cf 
								
							 
						 
						
							
							
								
								Replace broken type annotations with type comments  
							
							... 
							
							
							
							Fixes  #3826 . 
						
							2018-08-18 01:05:30 +03:00  
				
					
						
							
							
								 
						
							
								090f67a980 
								
							 
						 
						
							
							
								
								Refactored implementation and updated tests.  
							
							
							
						 
						
							2018-08-17 13:41:26 +02:00  
				
					
						
							
							
								 
						
							
								2b71cb9c38 
								
							 
						 
						
							
							
								
								Added activation/deactivation of capture fixture in logging emit.  
							
							
							
						 
						
							2018-08-17 00:26:12 +02:00  
				
					
						
							
							
								 
						
							
								7d4c4c66d4 
								
							 
						 
						
							
							
								
								Merge pull request  #3805  from asottile/cause_cycles  
							
							... 
							
							
							
							Fix traceback reporting for exceptions with `__cause__` cycles. 
							
						 
						
							2018-08-16 07:16:51 +02:00  
				
					
						
							
							
								 
						
							
								939a792c41 
								
							 
						 
						
							
							
								
								Merge pull request  #3798  from jonozzz/fix-3751  
							
							... 
							
							
							
							Fix  #3751  
						
							2018-08-16 06:52:16 +02:00  
				
					
						
							
							
								 
						
							
								17644ff285 
								
							 
						 
						
							
							
								
								Fix traceback reporting for exceptions with `__cause__` cycles.  
							
							
							
						 
						
							2018-08-15 18:15:07 -07:00  
				
					
						
							
							
								 
						
							
								64faa41d06 
								
							 
						 
						
							
							
								
								Merge pull request  #3802  from jonozzz/fix-3768  
							
							... 
							
							
							
							Fix test collection from packages mixed with directories. #3768  and #3789  
							
						 
						
							2018-08-15 21:42:25 -03:00  
				
					
						
							
							
								 
						
							
								6367f0f5f1 
								
							 
						 
						
							
							
								
								fix `filterwarnings` mark not registered  
							
							
							
						 
						
							2018-08-14 16:13:15 -05:00  
				
					
						
							
							
								 
						
							
								22ee2093b8 
								
							 
						 
						
							
							
								
								Merge pull request  #3801  from nicoddemus/improve-warning-addoption  
							
							... 
							
							
							
							Improve warning messages when addoption is called with string as `type` 
							
						 
						
							2018-08-14 09:30:17 +02:00  
				
					
						
							
							
								 
						
							
								abbd7c30a4 
								
							 
						 
						
							
							
								
								Unhide documentation for metafunc.config  
							
							... 
							
							
							
							Fixes  #3746 . 
						
							2018-08-11 20:48:55 +01:00  
				
					
						
							
							
								 
						
							
								bfd0addaeb 
								
							 
						 
						
							
							
								
								Fix test collection from packages mixed with directories.  #3768  and  #3789  
							
							
							
						 
						
							2018-08-10 12:56:08 -07:00  
				
					
						
							
							
								 
						
							
								be11d3e195 
								
							 
						 
						
							
							
								
								Improve warning messages when addoption is called with string as `type`  
							
							... 
							
							
							
							Encountered the warning myself and to me the message was not clear about
what should be done to fix the warning 
							
						 
						
							2018-08-10 12:49:06 -03:00  
				
					
						
							
							
								 
						
							
								266f05c4c4 
								
							 
						 
						
							
							
								
								Fix   #3751  
							
							
							
						 
						
							2018-08-09 18:28:22 -07:00  
				
					
						
							
							
								 
						
							
								d0bd01beca 
								
							 
						 
						
							
							
								
								Collect any tests from a package's __init__.py  
							
							
							
						 
						
							2018-08-09 18:06:38 -07:00  
				
					
						
							
							
								 
						
							
								4d8903fd0b 
								
							 
						 
						
							
							
								
								Merge pull request  #3780  from nicoddemus/mock-integration-fix  
							
							... 
							
							
							
							Fix issue where fixtures would lose the decorated functionality 
							
						 
						
							2018-08-09 12:26:09 -03:00  
				
					
						
							
							
								 
						
							
								67106f056b 
								
							 
						 
						
							
							
								
								Use a custom holder class so we can be sure __pytest_wrapper__ was set by us  
							
							
							
						 
						
							2018-08-09 09:22:00 -03:00  
				
					
						
							
							
								 
						
							
								aa358433b0 
								
							 
						 
						
							
							
								
								Fix AttributeError bug in TestCaseFunction.teardown by creating TestCaseFunction._testcase as attribute of class with a None default.  
							
							
							
						 
						
							2018-08-08 18:13:21 -05:00  
				
					
						
							
							
								 
						
							
								126896f69d 
								
							 
						 
						
							
							
								
								Add option to disable plugin auto-loading  
							
							... 
							
							
							
							If `PYTEST_DISABLE_PLUGIN_AUTOLOAD` is set, disable auto-loading of
plugins through setuptools entrypoints. Only plugins that have been
explicitly specified are loaded.
ref #3784 . 
							
						 
						
							2018-08-07 13:16:28 -04:00  
				
					
						
							
							
								 
						
							
								e723069165 
								
							 
						 
						
							
							
								
								Merge pull request  #3771  from nicoddemus/package-infinite-recursion-bug  
							
							... 
							
							
							
							Fix infinite recursion collection bug with pytest_ignore_collect hook 
							
						 
						
							2018-08-06 10:09:31 -03:00  
				
					
						
							
							
								 
						
							
								2c0d2eef40 
								
							 
						 
						
							
							
								
								Only consider actual functions when considering hooks  
							
							... 
							
							
							
							Fix  #3775  
						
							2018-08-04 16:37:07 -03:00  
				
					
						
							
							
								 
						
							
								ef8ec01e39 
								
							 
						 
						
							
							
								
								Fix issue where fixtures would lose the decorated functionality  
							
							... 
							
							
							
							Fix  #3774  
						
							2018-08-04 15:14:00 -03:00  
				
					
						
							
							
								 
						
							
								fe0a76e1a6 
								
							 
						 
						
							
							
								
								Fix recursion bug if a pytest_ignore_collect returns False instead of None  
							
							
							
						 
						
							2018-08-03 15:40:33 -03:00  
				
					
						
							
							
								 
						
							
								ca0476953e 
								
							 
						 
						
							
							
								
								Merge pull request  #3751  from nicoddemus/collect-file-bug  
							
							... 
							
							
							
							Workaround for #3742  
							
						 
						
							2018-08-02 07:35:46 +02:00  
				
					
						
							
							
								 
						
							
								7e92930fa9 
								
							 
						 
						
							
							
								
								Merge pull request  #3764  from asottile/fix_3763  
							
							... 
							
							
							
							Fix `TypeError` when the assertion message is `bytes` in python 3. 
							
						 
						
							2018-08-02 07:19:51 +02:00  
				
					
						
							
							
								 
						
							
								33769d0328 
								
							 
						 
						
							
							
								
								Merge pull request  #3754  from nicoddemus/fix-function-call-warning  
							
							... 
							
							
							
							Refactor direct fixture call warning to avoid incompatibility with plugins 
							
						 
						
							2018-08-02 07:17:15 +02:00  
				
					
						
							
							
								 
						
							
								5db2e6c7a1 
								
							 
						 
						
							
							
								
								Merge pull request  #3761  from nicoddemus/numpy-recursion-error  
							
							... 
							
							
							
							Fix recursion in pytest.approx() with arrays in numpy<1.13 
							
						 
						
							2018-08-01 23:40:30 -03:00  
				
					
						
							
							
								 
						
							
								804fc4063a 
								
							 
						 
						
							
							
								
								Merge pull request  #3741  from kalekundert/approx_misc_tweaks  
							
							... 
							
							
							
							Miscellaneous improvements to approx() 
							
						 
						
							2018-08-01 23:40:21 -03:00  
				
					
						
							
							
								 
						
							
								452e5c1cf0 
								
							 
						 
						
							
							
								
								Fix `TypeError` when the assertion message is `bytes` in python 3.  
							
							
							
						 
						
							2018-08-01 15:09:25 -07:00  
				
					
						
							
							
								 
						
							
								c6b11b9f62 
								
							 
						 
						
							
							
								
								Refactor direct fixture call warning to avoid incompatibility with plugins  
							
							... 
							
							
							
							This refactors the code so we have the real function object right during
collection. This avoids having to unwrap it later and lose attached information
such as "async" functions.
Fix  #3747  
							
						 
						
							2018-08-01 16:38:43 -03:00  
				
					
						
							
							
								 
						
							
								b8255308d6 
								
							 
						 
						
							
							
								
								Make the infinite-recusrion fix more explicit.  
							
							... 
							
							
							
							So we remember what happened and don't accidentally regress in the
future. 
							
						 
						
							2018-08-01 12:11:03 -07:00  
				
					
						
							
							
								 
						
							
								a5c0fb7f6b 
								
							 
						 
						
							
							
								
								Rename recursive_map -> _recursive_list_map as requested in review  
							
							
							
						 
						
							2018-08-01 15:17:58 -03:00  
				
					
						
							
							
								 
						
							
								7d13599ba1 
								
							 
						 
						
							
							
								
								Fix recursion in pytest.approx() with arrays in numpy<1.13  
							
							
							
						 
						
							2018-08-01 08:04:09 -03:00  
				
					
						
							
							
								 
						
							
								2a2f888909 
								
							 
						 
						
							
							
								
								Move recursive_map from local to free function  
							
							
							
						 
						
							2018-08-01 07:30:40 -03:00  
				
					
						
							
							
								 
						
							
								ad5ddaf55a 
								
							 
						 
						
							
							
								
								Simplify is_numpy_array as suggested in review  
							
							
							
						 
						
							2018-08-01 07:28:39 -03:00  
				
					
						
							
							
								 
						
							
								5003bae0de 
								
							 
						 
						
							
							
								
								Fix 'at' string for non-numeric messages in approx()  
							
							
							
						 
						
							2018-08-01 07:07:37 -03:00  
				
					
						
							
							
								 
						
							
								611d254ed5 
								
							 
						 
						
							
							
								
								Improve error checking messages: add position and use pprint  
							
							
							
						 
						
							2018-08-01 07:01:00 -03:00  
				
					
						
							
							
								 
						
							
								fcdc1d867e 
								
							 
						 
						
							
							
								
								fix   #3745  - display absolute cache_dir if necessary  
							
							
							
						 
						
							2018-08-01 08:25:37 +02:00  
				
					
						
							
							
								 
						
							
								098dca3a9f 
								
							 
						 
						
							
							
								
								Use {!r} for a few other messages as well  
							
							
							
						 
						
							2018-07-31 21:14:51 -03:00  
				
					
						
							
							
								 
						
							
								bf7c188cc0 
								
							 
						 
						
							
							
								
								Improve error message for invalid types passed to pytest.approx()  
							
							... 
							
							
							
							* Hide the internal traceback
* Use !r representation instead of !s (the default for {} formatting) 
							
						 
						
							2018-07-31 21:08:24 -03:00  
				
					
						
							
							
								 
						
							
								8c9efd8608 
								
							 
						 
						
							
							
								
								Only call _collectfile on package instances  
							
							... 
							
							
							
							As discussed in #3751 , this feels like a hack, pushing it only so we can
see how it fares on CI and if there are better solutions out there 
							
						 
						
							2018-07-31 19:06:30 -03:00  
				
					
						
							
							
								 
						
							
								d02491931a 
								
							 
						 
						
							
							
								
								Fix the unused import.  
							
							
							
						 
						
							2018-07-31 11:33:46 -07:00  
				
					
						
							
							
								 
						
							
								032db159c9 
								
							 
						 
						
							
							
								
								Let black reformat the code...  
							
							
							
						 
						
							2018-07-31 11:23:23 -07:00  
				
					
						
							
							
								 
						
							
								cd2085ee71 
								
							 
						 
						
							
							
								
								approx(): Detect type errors earlier.  
							
							
							
						 
						
							2018-07-31 00:26:35 -07:00  
				
					
						
							
							
								 
						
							
								ad305e71d7 
								
							 
						 
						
							
							
								
								Improve docstrings for Approx classes.  
							
							
							
						 
						
							2018-07-30 23:26:57 -07:00  
				
					
						
							
							
								 
						
							
								7d8688d54b 
								
							 
						 
						
							
							
								
								Reflect dimension in approx repr for numpy arrays.  
							
							
							
						 
						
							2018-07-30 23:23:17 -07:00  
				
					
						
							
							
								 
						
							
								eada0b1fd7 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into release-3.7.0  
							
							
							
						 
						
							2018-07-30 20:12:30 +00:00  
				
					
						
							
							
								 
						
							
								8609f8d25a 
								
							 
						 
						
							
							
								
								Move warning definition to deprecated module  
							
							
							
						 
						
							2018-07-30 14:25:29 -03:00  
				
					
						
							
							
								 
						
							
								cf6d8e7e53 
								
							 
						 
						
							
							
								
								Fix test and update warning in pytest_namespace docs  
							
							
							
						 
						
							2018-07-30 12:16:42 -03:00  
				
					
						
							
							
								 
						
							
								e3d412d1f4 
								
							 
						 
						
							
							
								
								Warn when implementations exist for pytest_namespace hook  
							
							... 
							
							
							
							This hook has been deprecated and will be removed in the future.
Fix  #2639  
							
						 
						
							2018-07-29 22:20:23 -03:00  
				
					
						
							
							
								 
						
							
								bf127a63b2 
								
							 
						 
						
							
							
								
								Need to iterate over the flattened array.  
							
							
							
						 
						
							2018-07-27 11:24:42 -07:00  
				
					
						
							
							
								 
						
							
								d0ba242c46 
								
							 
						 
						
							
							
								
								Implement change suggested by @kalekundert in PR  
							
							
							
						 
						
							2018-07-27 15:07:20 -03:00  
				
					
						
							
							
								 
						
							
								57b0c60cb4 
								
							 
						 
						
							
							
								
								Remove Testdir.run_example as recommended  
							
							
							
						 
						
							2018-07-26 20:10:40 -03:00  
				
					
						
							
							
								 
						
							
								011f88f7e7 
								
							 
						 
						
							
							
								
								Deprecate calling fixture functions directly  
							
							... 
							
							
							
							This will now issue a RemovedInPytest4Warning when the user calls
a fixture function directly, instead of requesting it from test
functions as is expected
Fix  #3661  
							
						 
						
							2018-07-26 19:58:42 -03:00  
				
					
						
							
							
								 
						
							
								f0db64ac2e 
								
							 
						 
						
							
							
								
								drop the duplicate approx call  
							
							... 
							
							
							
							update test to include both np.array(actual) and np.array(expected) 
							
						 
						
							2018-07-24 21:18:44 -04:00  
				
					
						
							
							
								 
						
							
								f5165064ee 
								
							 
						 
						
							
							
								
								Make yield_fixture just call fixture to do its work  
							
							... 
							
							
							
							Since fixture and yield_fixture are identical, they should call
the same code; as it was, the code inside them was already starting
to deviate. 
							
						 
						
							2018-07-22 09:41:03 -03:00  
				
					
						
							
							
								 
						
							
								c9a0881309 
								
							 
						 
						
							
							
								
								Isolate the code that resolves the fixturefunc to a separate function  
							
							... 
							
							
							
							pytest_fixture_setup was somewhat convoluted because it was trying
to do too many things. 
							
						 
						
							2018-07-22 09:37:41 -03:00  
				
					
						
							
							
								 
						
							
								5167933395 
								
							 
						 
						
							
							
								
								Move teardown code of yield fixtures to a partial to avoid leaks  
							
							... 
							
							
							
							As it were before, it was keeping a reference to fixturefunc and it
alive when an error occurred 
							
						 
						
							2018-07-22 09:27:34 -03:00  
				
					
						
							
							
								 
						
							
								7bff5866b1 
								
							 
						 
						
							
							
								
								bugfix in ApproxNumpy initialisation, use keywords for arguments now  
							
							
							
						 
						
							2018-07-18 17:29:55 -04:00  
				
					
						
							
							
								 
						
							
								0bb29d5649 
								
							 
						 
						
							
							
								
								Merge pull request  #3685  from nicoddemus/merge-master-into-features  
							
							... 
							
							
							
							Merge master into features 
							
						 
						
							2018-07-15 16:53:39 -03:00  
				
					
						
							
							
								 
						
							
								ac9ceaacd8 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-07-15 11:54:14 -03:00  
				
					
						
							
							
								 
						
							
								d2fe619120 
								
							 
						 
						
							
							
								
								Fix truncated locals in verbose mode  
							
							
							
						 
						
							2018-07-15 11:30:26 -03:00  
				
					
						
							
							
								 
						
							
								58e77f58bd 
								
							 
						 
						
							
							
								
								Replace broken type annotations with type comments  
							
							... 
							
							
							
							Fixes  #3635 . 
						
							2018-07-15 16:58:39 +03:00  
				
					
						
							
							
								 
						
							
								f6ceedd15b 
								
							 
						 
						
							
							
								
								Merge pull request  #3636  from RonnyPfannschmidt/fixturetest-examples  
							
							... 
							
							
							
							[RFC] Fixturetest examples - move test contents to use example scripts for contents 
							
						 
						
							2018-07-11 23:29:33 -03:00  
				
					
						
							
							
								 
						
							
								3e599dc149 
								
							 
						 
						
							
							
								
								Check that param sets match number of args during _for_parametrize  
							
							... 
							
							
							
							It makes sense to validate them during creation of the parameter set 
							
						 
						
							2018-07-11 22:57:53 -03:00  
				
					
						
							
							
								 
						
							
								54fbc6f6e1 
								
							 
						 
						
							
							
								
								Refactor parametrize() code for readability  
							
							... 
							
							
							
							Extract the parametrize() block of code into methods for better
readability 
							
						 
						
							2018-07-11 21:29:21 -03:00  
				
					
						
							
							
								 
						
							
								61301d934e 
								
							 
						 
						
							
							
								
								Remove some extraneous `# noqa` comments  
							
							... 
							
							
							
							This was partially automated with https://github.com/asottile/yesqa 
_with a few caveats_:
- it was run under python2 (chosen arbitrarily, when run under python3 other
  things were changed)
- I used `git checkout -p` to revert the removal of `noqa` comments from
  `cmp()` lines. 
							
						 
						
							2018-07-08 17:05:52 -07:00  
				
					
						
							
							
								 
						
							
								4ae93a7a07 
								
							 
						 
						
							
							
								
								Remove obsolete __future__ imports  
							
							
							
						 
						
							2018-07-08 08:37:02 -07:00  
				
					
						
							
							
								 
						
							
								42bbb4fa8a 
								
							 
						 
						
							
							
								
								Use -mpytest when invoking pytest in pytester  
							
							
							
						 
						
							2018-07-07 17:18:44 -07:00  
				
					
						
							
							
								 
						
							
								303133f013 
								
							 
						 
						
							
							
								
								Merge pull request  #3647  from jeffreyrack/3610-add-trace-option  
							
							... 
							
							
							
							3610 add trace option 
							
						 
						
							2018-07-07 10:05:34 -03:00  
				
					
						
							
							
								 
						
							
								027d2336b8 
								
							 
						 
						
							
							
								
								Add minimal docs for package-scoped fixtures (experimental)  
							
							
							
						 
						
							2018-07-05 21:56:31 -03:00  
				
					
						
							
							
								 
						
							
								3c19370cec 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/features' into jonozzz/features  
							
							
							
						 
						
							2018-07-05 18:15:17 -03:00  
				
					
						
							
							
								 
						
							
								7696d5371a 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into features  
							
							
							
						 
						
							2018-07-04 18:49:35 -03:00  
				
					
						
							
							
								 
						
							
								55ebf261ce 
								
							 
						 
						
							
							
								
								Switch to new API  
							
							
							
						 
						
							2018-07-03 13:37:03 -04:00  
				
					
						
							
							
								 
						
							
								4afb8c428b 
								
							 
						 
						
							
							
								
								Fix python 2 issues  
							
							
							
						 
						
							2018-07-02 20:20:42 -07:00  
				
					
						
							
							
								 
						
							
								10a8691eca 
								
							 
						 
						
							
							
								
								Add support for yielded functions.  
							
							
							
						 
						
							2018-07-02 19:46:26 -07:00  
				
					
						
							
							
								 
						
							
								b75320ba95 
								
							 
						 
						
							
							
								
								Fix --trace option with yield tests.  
							
							
							
						 
						
							2018-07-02 19:08:41 -07:00  
				
					
						
							
							
								 
						
							
								a43205b4bc 
								
							 
						 
						
							
							
								
								Fix monkeypatch doc  
							
							... 
							
							
							
							`delenv` is incorrectly documented. 
							
						 
						
							2018-07-02 21:01:41 +08:00  
				
					
						
							
							
								 
						
							
								0b70477930 
								
							 
						 
						
							
							
								
								Fix linting issues.  
							
							
							
						 
						
							2018-07-01 20:18:00 -07:00  
				
					
						
							
							
								 
						
							
								66fa6bb42e 
								
							 
						 
						
							
							
								
								Fix flake8 issues.  
							
							
							
						 
						
							2018-07-01 18:50:57 -07:00  
				
					
						
							
							
								 
						
							
								a46b94950c 
								
							 
						 
						
							
							
								
								Properly set immediately_break value  
							
							
							
						 
						
							2018-06-30 21:32:25 -07:00  
				
					
						
							
							
								 
						
							
								54d3cd587d 
								
							 
						 
						
							
							
								
								Adding the --trace option.  
							
							
							
						 
						
							2018-06-30 18:09:06 -07:00  
				
					
						
							
							
								 
						
							
								2b75a311a7 
								
							 
						 
						
							
							
								
								Merge pull request  #3637  from RonnyPfannschmidt/fix-3631  
							
							... 
							
							
							
							fix  #3631  - don't store legacy markinfo when its impossible 
						
							2018-06-30 17:48:46 -03:00  
				
					
						
							
							
								 
						
							
								342f2cdc17 
								
							 
						 
						
							
							
								
								Fixes   #3630  
							
							
							
						 
						
							2018-06-29 16:09:39 +02:00  
				
					
						
							
							
								 
						
							
								5bd5b8c68a 
								
							 
						 
						
							
							
								
								fix   #3631  - don't store legacy markinfo when its impossible  
							
							
							
						 
						
							2018-06-29 14:01:20 +02:00  
				
					
						
							
							
								 
						
							
								0fd86ec8a8 
								
							 
						 
						
							
							
								
								move some fill fixture acceptance tests contents to the examples script folder  
							
							
							
						 
						
							2018-06-29 10:58:33 +02:00  
				
					
						
							
							
								 
						
							
								8680dfc939 
								
							 
						 
						
							
							
								
								Merge pull request  #3629  from egnartsms/issue-2220-param-breaks-dep  
							
							... 
							
							
							
							Make test parametrization override indirect fixtures 
							
						 
						
							2018-06-28 21:43:21 -03:00  
				
					
						
							
							
								 
						
							
								3c73d6298a 
								
							 
						 
						
							
							
								
								merge from master to features  
							
							
							
						 
						
							2018-06-28 17:32:41 +02:00  
				
					
						
							
							
								 
						
							
								c220fb235a 
								
							 
						 
						
							
							
								
								Minor fix (code improvement)  
							
							
							
						 
						
							2018-06-28 14:53:06 +03:00  
				
					
						
							
							
								 
						
							
								1dc5e97ac2 
								
							 
						 
						
							
							
								
								Make test parametrization override indirect fixtures  
							
							
							
						 
						
							2018-06-28 14:32:29 +03:00  
				
					
						
							
							
								 
						
							
								e9371a58a0 
								
							 
						 
						
							
							
								
								Merge pull request  #3622  from RonnyPfannschmidt/builtin-serialize  
							
							... 
							
							
							
							move report classes to own file to prepare for serialisazion 
							
						 
						
							2018-06-27 15:17:09 -03:00  
				
					
						
							
							
								 
						
							
								17e01993d9 
								
							 
						 
						
							
							
								
								regendoc and invocation fixes  
							
							
							
						 
						
							2018-06-27 08:28:21 +02:00  
				
					
						
							
							
								 
						
							
								581d49635e 
								
							 
						 
						
							
							
								
								add docs and changelog  
							
							
							
						 
						
							2018-06-27 06:52:36 +02:00  
				
					
						
							
							
								 
						
							
								e860ff7299 
								
							 
						 
						
							
							
								
								port some acceptance tests over to copy_example  
							
							
							
						 
						
							2018-06-26 22:59:40 +02:00  
				
					
						
							
							
								 
						
							
								0672bc633f 
								
							 
						 
						
							
							
								
								enable pytester to run examples copied from the cwd  
							
							
							
						 
						
							2018-06-26 22:48:33 +02:00  
				
					
						
							
							
								 
						
							
								2dfb52f7e0 
								
							 
						 
						
							
							
								
								fix rebase artifacts  
							
							
							
						 
						
							2018-06-26 22:10:26 +02:00  
				
					
						
							
							
								 
						
							
								cc6eb9f83c 
								
							 
						 
						
							
							
								
								move test reports to own file  
							
							
							
						 
						
							2018-06-26 22:09:15 +02:00  
				
					
						
							
							
								 
						
							
								643e5a9c44 
								
							 
						 
						
							
							
								
								fix docs  
							
							
							
						 
						
							2018-06-26 21:57:31 +02:00  
				
					
						
							
							
								 
						
							
								b8486037d3 
								
							 
						 
						
							
							
								
								fix   #3605  - unpack markdecorators from parameterization  
							
							
							
						 
						
							2018-06-26 21:57:31 +02:00  
				
					
						
							
							
								 
						
							
								89e0a3ec27 
								
							 
						 
						
							
							
								
								merge from master to features  
							
							
							
						 
						
							2018-06-26 17:01:05 +02:00  
				
					
						
							
							
								 
						
							
								cbaa7dd56a 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks except pyupgrade  
							
							
							
						 
						
							2018-06-26 06:35:27 -07:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								1d55c49a9a 
								
							 
						 
						
							
							
								
								Fix `ImportWarning` triggered by explicit relative imports  
							
							
							
						 
						
							2018-06-23 07:55:49 -07:00  
				
					
						
							
							
								 
						
							
								95f00de0df 
								
							 
						 
						
							
							
								
								use paths for config.cache.get key  
							
							
							
						 
						
							2018-06-23 00:14:06 +02:00  
				
					
						
							
							
								 
						
							
								c4c666cbc4 
								
							 
						 
						
							
							
								
								use Pathlib instead of path splitting  
							
							
							
						 
						
							2018-06-23 00:07:57 +02:00  
				
					
						
							
							
								 
						
							
								ee30bf45c9 
								
							 
						 
						
							
							
								
								rebase onto readme addition  
							
							
							
						 
						
							2018-06-23 00:03:10 +02:00  
				
					
						
							
							
								 
						
							
								603df1ea1c 
								
							 
						 
						
							
							
								
								whops, its supported starting with python 3.6, not python 3.5  
							
							
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								abbf73ad1a 
								
							 
						 
						
							
							
								
								use pathlib2 up to python3.4 - damn the stdlib  
							
							
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								1226cdab47 
								
							 
						 
						
							
							
								
								fix warnings and json dumping of cacheprovider  
							
							
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								ab80e0fba0 
								
							 
						 
						
							
							
								
								sort compat flake8 mess correctly  
							
							
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								fb992a0c81 
								
							 
						 
						
							
							
								
								reorder attr.ib specs  
							
							
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								23581d44bd 
								
							 
						 
						
							
							
								
								add missed file  
							
							
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								c7eb53317b 
								
							 
						 
						
							
							
								
								port cache plugin internals to pathlib  
							
							... 
							
							
							
							warning logging got broken by detanglement from config 
							
						 
						
							2018-06-22 23:56:22 +02:00  
				
					
						
							
							
								 
						
							
								0d3914b626 
								
							 
						 
						
							
							
								
								Remove extra '\' left at the end of a line in cache's readme contents  
							
							
							
						 
						
							2018-06-21 20:12:50 -03:00  
				
					
						
							
							
								 
						
							
								8b4c59e606 
								
							 
						 
						
							
							
								
								Silence usage of `reduce` warning in python 2  
							
							
							
						 
						
							2018-06-21 13:27:00 -07:00  
				
					
						
							
							
								 
						
							
								c672bfa32e 
								
							 
						 
						
							
							
								
								added changelog entry  
							
							... 
							
							
							
							moved cache readme tests to test_cacheprovider.py 
							
						 
						
							2018-06-21 17:43:10 +05:30  
				
					
						
							
							
								 
						
							
								8f1d8ac970 
								
							 
						 
						
							
							
								
								fixed linting errors  
							
							... 
							
							
							
							ran black
removed unused imports and variables 
							
						 
						
							2018-06-21 15:15:55 +05:30  
				
					
						
							
							
								 
						
							
								53d4710c62 
								
							 
						 
						
							
							
								
								added tests for .pytest_cache README  
							
							... 
							
							
							
							Helper class to check if readme exists in .pytest_cache directory
 Tests to check for readme when tests pass and when they fail 
							
						 
						
							2018-06-21 14:25:00 +05:30  
				
					
						
							
							
								 
						
							
								31f089db6a 
								
							 
						 
						
							
							
								
								add reamde for .pytest_cache  
							
							... 
							
							
							
							method - `ensure_readme()` 
							
						 
						
							2018-06-21 13:14:58 +05:30  
				
					
						
							
							
								 
						
							
								93e55ad2fa 
								
							 
						 
						
							
							
								
								Remove unused attribute and parameter in CallSpec2  
							
							
							
						 
						
							2018-06-18 21:48:49 -03:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								acb8f23311 
								
							 
						 
						
							
							
								
								Fix 2 DeprecationWarnings about invalid escape seq  
							
							
							
						 
						
							2018-06-16 10:37:33 +02:00  
				
					
						
							
							
								 
						
							
								b285078db4 
								
							 
						 
						
							
							
								
								Merge pull request  #3535  from RonnyPfannschmidt/config-split  
							
							... 
							
							
							
							begin to turn config into package 
							
						 
						
							2018-06-15 10:28:06 -07:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								3615977608 
								
							 
						 
						
							
							
								
								Add `messages` property to `caplog` fixture.  
							
							
							
						 
						
							2018-06-14 12:22:33 -07:00  
				
					
						
							
							
								 
						
							
								8d072205e9 
								
							 
						 
						
							
							
								
								fix whitespace  
							
							
							
						 
						
							2018-06-13 22:00:22 +02:00  
				
					
						
							
							
								 
						
							
								b5102d03a6 
								
							 
						 
						
							
							
								
								Fix add_marker docs  
							
							
							
						 
						
							2018-06-13 14:57:10 -03:00  
				
					
						
							
							
								 
						
							
								eb0c6a8287 
								
							 
						 
						
							
							
								
								fix addmarker - extract mark from markdecorator  
							
							
							
						 
						
							2018-06-13 17:27:00 +02:00  
				
					
						
							
							
								 
						
							
								b0ec442d24 
								
							 
						 
						
							
							
								
								rework Node.add_marker parameter list and docstring  
							
							
							
						 
						
							2018-06-12 17:55:58 +02:00  
				
					
						
							
							
								 
						
							
								37793d4cdb 
								
							 
						 
						
							
							
								
								fix addmarker - extract mark from markdecorator  
							
							
							
						 
						
							2018-06-12 15:50:58 +02:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								61471df8da 
								
							 
						 
						
							
							
								
								Merge pull request  #3562  from nicoddemus/revert-callinfo-result  
							
							... 
							
							
							
							Revert change of Callinfo.result default value 
							
						 
						
							2018-06-11 19:03:01 +02:00  
				
					
						
							
							
								 
						
							
								49f621de76 
								
							 
						 
						
							
							
								
								Print <undetermined location> instead of None for warnings  
							
							
							
						 
						
							2018-06-10 10:51:36 -07:00  
				
					
						
							
							
								 
						
							
								10b0b81346 
								
							 
						 
						
							
							
								
								Revert change of Callinfo.result default value  
							
							... 
							
							
							
							As discussed in #3560 , this should not go to master because this breaks
the API.
Reverts commits:
1a7dcd73cf198e993969 
							
						 
						
							2018-06-10 11:47:58 -03:00  
				
					
						
							
							
								 
						
							
								1a7dcd73cf 
								
							 
						 
						
							
							
								
								Add a default value to CallInfo.result  
							
							
							
						 
						
							2018-06-09 16:58:23 -07:00  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								1459cbe01f 
								
							 
						 
						
							
							
								
								put config path finding and exceptions into own modules  
							
							
							
						 
						
							2018-06-05 10:07:02 +02:00  
				
					
						
							
							
								 
						
							
								c9df77cbd6 
								
							 
						 
						
							
							
								
								move argument parser to own file  
							
							
							
						 
						
							2018-06-05 09:55:28 +02:00  
				
					
						
							
							
								 
						
							
								026cd36237 
								
							 
						 
						
							
							
								
								make builtin plugins a list  
							
							
							
						 
						
							2018-06-05 09:40:50 +02:00  
				
					
						
							
							
								 
						
							
								bc2247219f 
								
							 
						 
						
							
							
								
								turn config into package  
							
							... 
							
							
							
							this prepares the splitting 
							
						 
						
							2018-06-05 09:08:53 +02:00  
				
					
						
							
							
								 
						
							
								04f08b67a4 
								
							 
						 
						
							
							
								
								__code__ and __self__ are attributes in python2.6+  
							
							
							
						 
						
							2018-06-03 13:12:46 -07:00  
				
					
						
							
							
								 
						
							
								eaa882f3d5 
								
							 
						 
						
							
							
								
								switch to src layout  
							
							
							
						 
						
							2018-05-26 09:10:38 +02:00