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