777e9e1e17 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'origin/master' into merge-master  
							
							
							
						 
						
							2018-10-25 18:00:39 -07:00  
				
					
						
							
							
								 
						
							
								2368fbb63c 
								
							 
						 
						
							
							
								
								Apply reorder-python-imports to all files  
							
							
							
						 
						
							2018-10-25 00:01:29 -07:00  
				
					
						
							
							
								 
						
							
								7bb51b8ceb 
								
							 
						 
						
							
							
								
								Issue a warning when a fixture named 'request' is collected  
							
							... 
							
							
							
							Fix  #611  
						
							2018-10-20 12:09:44 -03:00  
				
					
						
							
							
								 
						
							
								1101a20408 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/master' into merge-master-into-features  
							
							
							
						 
						
							2018-10-02 18:13:54 -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  
				
					
						
							
							
								 
						
							
								ba5630e0f8 
								
							 
						 
						
							
							
								
								Simplify test_pytest_plugins_in_non_top_level_conftest_deprecated  
							
							
							
						 
						
							2018-09-26 10:49:14 -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  
				
					
						
							
							
								 
						
							
								d3ca739c00 
								
							 
						 
						
							
							
								
								Use explicit instances when calling warnings.warn_explicit  
							
							
							
						 
						
							2018-09-04 16:29:48 -03:00  
				
					
						
							
							
								 
						
							
								b42518acd5 
								
							 
						 
						
							
							
								
								Change std_warn to receive a single warning instance, addressed review suggestions  
							
							
							
						 
						
							2018-09-04 14:20:42 -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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								8ef21f56d3 
								
							 
						 
						
							
							
								
								Fix 404  
							
							
							
						 
						
							2018-08-28 14:42:16 -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  
				
					
						
							
							
								 
						
							
								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  
				
					
						
							
							
								 
						
							
								cbaa7dd56a 
								
							 
						 
						
							
							
								
								Upgrade pre-commit hooks except pyupgrade  
							
							
							
						 
						
							2018-06-26 06:35:27 -07:00  
				
					
						
							
							
								 
						
							
								703e4b11ba 
								
							 
						 
						
							
							
								
								run black  
							
							
							
						 
						
							2018-05-23 16:48:46 +02:00  
				
					
						
							
							
								 
						
							
								9aacb4635e 
								
							 
						 
						
							
							
								
								run pyupgrade  
							
							
							
						 
						
							2018-05-23 16:45:09 +02:00  
				
					
						
							
							
								 
						
							
								54b15f5826 
								
							 
						 
						
							
							
								
								deprecated pytest_plugins in non-top-level conftest  
							
							
							
						 
						
							2018-03-10 21:20:12 +02:00  
				
					
						
							
							
								 
						
							
								99aab2c3f5 
								
							 
						 
						
							
							
								
								#3268  Added deprecation to custom configs  
							
							
							
						 
						
							2018-03-02 10:52:38 +03:00  
				
					
						
							
							
								 
						
							
								f3c9c6e8a8 
								
							 
						 
						
							
							
								
								fix restoring Python state after in-process pytest runs  
							
							... 
							
							
							
							Now each in-process pytest run saves a snapshot of important global Python
state and restores it after the test completes, including the list of loaded
modules & the Python path settings.
Previously only the loaded package data was getting restored, but that was
also reverting any loaded package changes done in the test triggering the
pytest runs, and not only those done by the pytest runs themselves.
Updated acceptance tests broken by this change, which were only passing before
by accident as they were making multiple pytest runs with later ones depending
on sys.path changes left behind by the initial one. 
							
						 
						
							2017-12-17 12:47:50 +01:00  
				
					
						
							
							
								 
						
							
								ce30896cd2 
								
							 
						 
						
							
							
								
								Also blacklist pytest-capturelog plugin  
							
							... 
							
							
							
							This is the older plugin before pytest-catchlog was around. Apparently there are
people still using it.
Fixes  #3004  
							
						 
						
							2017-12-05 20:02:56 +01:00  
				
					
						
							
							
								 
						
							
								cf0cac3b73 
								
							 
						 
						
							
							
								
								Bring back TerminalReporter.writer as an alias to TerminalReporter._tw  
							
							... 
							
							
							
							Fix  #2984  
						
							2017-11-30 19:56:47 -02:00  
				
					
						
							
							
								 
						
							
								95de11a44e 
								
							 
						 
						
							
							
								
								Block pytest-catchlog and issue a warning  
							
							... 
							
							
							
							Trying to install pytest-3.3 and pytest-catchlog will result in an
option conflicts because both declare the same options. 
							
						 
						
							2017-11-23 19:53:12 -02:00  
				
					
						
							
							
								 
						
							
								1f08d990d5 
								
							 
						 
						
							
							
								
								Deprecate metafunc.addcall  
							
							... 
							
							
							
							Fix  #2876  
						
							2017-11-15 15:16:00 -02:00  
				
					
						
							
							
								 
						
							
								3288c9a110 
								
							 
						 
						
							
							
								
								Improve user guidance regarding ``--resultlog`` deprecation  
							
							... 
							
							
							
							Fix  #2739  
						
							2017-08-31 19:11:41 -03:00  
				
					
						
							
							
								 
						
							
								8a7d98fed9 
								
							 
						 
						
							
							
								
								Make YIELD_TEST warning less spammy  
							
							... 
							
							
							
							Emit it only once per each generator, rather than for each generated
function. Also add information about which test caused it to be emitted. 
							
						 
						
							2017-07-10 21:41:09 +02:00  
				
					
						
							
							
								 
						
							
								9f85584656 
								
							 
						 
						
							
							
								
								Merge remote-tracking branch 'upstream/features' into integrate-pytest-warnings  
							
							
							
						 
						
							2017-03-20 19:59:05 -03:00  
				
					
						
							
							
								 
						
							
								42a5d6bdfa 
								
							 
						 
						
							
							
								
								Add __future__ imports to all pytest modules  
							
							... 
							
							
							
							This prevents silly errors from creeping in Python 2 when testing in Python 3 
							
						 
						
							2017-03-16 22:45:40 -03:00  
				
					
						
							
							
								 
						
							
								78194093af 
								
							 
						 
						
							
							
								
								Improve warning representation in terminal plugin and fix tests  
							
							
							
						 
						
							2017-03-16 21:57:32 -03:00  
				
					
						
							
							
								 
						
							
								337f891d78 
								
							 
						 
						
							
							
								
								Fixed tests  
							
							
							
						 
						
							2017-03-16 20:01:47 -03:00  
				
					
						
							
							
								 
						
							
								fb0b90646e 
								
							 
						 
						
							
							
								
								New-style classes implemented for python 2.7 -  #2147  
							
							
							
						 
						
							2017-02-16 20:28:17 +01:00  
				
					
						
							
							
								 
						
							
								789e4670e7 
								
							 
						 
						
							
							
								
								Merge pull request  #1813  from nicoddemus/pytest-setup.cfg  
							
							... 
							
							
							
							Support [tool:pytest] in setup.cfg files 
							
						 
						
							2016-08-17 20:33:57 +02:00  
				
					
						
							
							
								 
						
							
								ab86dea529 
								
							 
						 
						
							
							
								
								Support [tool:pytest] in setup.cfg files  
							
							... 
							
							
							
							Also deprecate [pytest] usage in setup.cfg files
Fix  #567  
							
						 
						
							2016-08-17 08:19:38 -03:00  
				
					
						
							
							
								 
						
							
								f25771a101 
								
							 
						 
						
							
							
								
								Deprecate --resultlog cmdline option  
							
							... 
							
							
							
							Fix  #830  
						
							2016-08-16 21:40:34 -03:00  
				
					
						
							
							
								 
						
							
								6c8b0a28e1 
								
							 
						 
						
							
							
								
								Add deprecation module to centralize deprecation messages and bits of code  
							
							
							
						 
						
							2016-07-25 18:14:39 -03:00