34df678bc3 
								
							 
						 
						
							
							
								
								some docs and refined semantics for wrappers  
							
							
							
						 
						
							2014-10-09 12:21:01 +02:00  
				
					
						
							
							
								 
						
							
								eda39f361d 
								
							 
						 
						
							
							
								
								re-scan methods during plugin register and unregister and not  
							
							... 
							
							
							
							during hook calling anymore.  Simplify register/getplugin api of PluginManager 
							
						 
						
							2014-10-09 10:47:32 +02:00  
				
					
						
							
							
								 
						
							
								f5f924d293 
								
							 
						 
						
							
							
								
								- refactor wrapped call support to also accomodate  
							
							... 
							
							
							
							pytest.mark.hookwrapper
- introduce a CallOutcome class to hold the result/excinfo status of
  calling a function.
- rename add_method_controller to add_method_wrapper 
							
						 
						
							2014-10-08 11:27:14 +02:00  
				
					
						
							
							
								 
						
							
								a43fb9cd93 
								
							 
						 
						
							
							
								
								fix add_method_controller to deal properly in the event of exceptions.  
							
							... 
							
							
							
							add a docstring as well. 
							
						 
						
							2014-10-07 16:16:47 +02:00  
				
					
						
							
							
								 
						
							
								8cfec56a82 
								
							 
						 
						
							
							
								
								simplify internal pytester machinery  
							
							
							
						 
						
							2014-10-06 13:37:57 +02:00  
				
					
						
							
							
								 
						
							
								3d794b6b38 
								
							 
						 
						
							
							
								
								factor out a small "wrapping" helper  
							
							
							
						 
						
							2014-10-04 15:49:31 +02:00  
				
					
						
							
							
								 
						
							
								2161b54555 
								
							 
						 
						
							
							
								
								remove overhead for tracing of hook calls and remove some old unused code  
							
							
							
						 
						
							2014-10-02 15:25:42 +02:00  
				
					
						
							
							
								 
						
							
								de83d35994 
								
							 
						 
						
							
							
								
								optimize argument slicing when calling plugin hooks  
							
							
							
						 
						
							2014-10-01 14:55:54 +02:00  
				
					
						
							
							
								 
						
							
								e635f9f9b2 
								
							 
						 
						
							
							
								
								simplify _scan_plugin implementation and store argnames on HookCaller  
							
							
							
						 
						
							2014-10-01 13:57:35 +02:00  
				
					
						
							
							
								 
						
							
								f43cda9681 
								
							 
						 
						
							
							
								
								implement a new hook type: hook wrappers using a "yield" to distinguish  
							
							... 
							
							
							
							between working at the front and at the end of a hook call chain.
The idea is to make it easier for a plugin to "wrap" a certain hook
call and use context managers, in particular allow a major cleanup of
capturing. 
							
						 
						
							2014-03-14 12:49:35 +01:00  
				
					
						
							
							
								 
						
							
								ebd10aa6b4 
								
							 
						 
						
							
							
								
								shrink and merge the somewhat obscure and undocumented internal hinting  
							
							... 
							
							
							
							system with the new warnings one 
							
						 
						
							2014-03-11 22:10:51 +01:00  
				
					
						
							
							
								 
						
							
								9fb2079458 
								
							 
						 
						
							
							
								
								replace py.test module references with pytest  
							
							... 
							
							
							
							The only remaining 'py.test' references are:
 * those referring to the 'py.test' executable
 * those in code explicitly testing py.test/pytest module compatibility
 * those in old CHANGES documentation
 * those in documentation generated based on external data
 * those in seemingly unfinished & unmaintained Japanese documentation
Minor stylistic changes and typo corrections made to documentation next to
several applied py.test --> pytest content changes. 
							
						 
						
							2014-01-18 12:31:33 +01:00  
				
					
						
							
							
								 
						
							
								0d7af592c0 
								
							 
						 
						
							
							
								
								speed up a test  
							
							
							
						 
						
							2013-12-09 08:14:39 +01:00  
				
					
						
							
							
								 
						
							
								9b21d3f206 
								
							 
						 
						
							
							
								
								internally make varnames() deal with classes's __init__,  
							
							... 
							
							
							
							although it's not needed by pytest itself atm.  Also
fix caching.  Fixes issue376. 
							
						 
						
							2013-11-19 15:33:52 +01:00  
				
					
						
							
							
								 
						
							
								dde0a81677 
								
							 
						 
						
							
							
								
								don't hide an ImportError when importing a plugin produces one.  
							
							... 
							
							
							
							fixes issue375. 
							
						 
						
							2013-11-19 14:45:51 +01:00  
				
					
						
							
							
								 
						
							
								8ac5af2896 
								
							 
						 
						
							
							
								
								fix flakes issues and make --flakes run part of tox runs  
							
							
							
						 
						
							2013-10-12 15:39:22 +02:00  
				
					
						
							
							
								 
						
							
								4b709037ab 
								
							 
						 
						
							
							
								
								some more separation of core pluginmanager from pytest specific functionality.  
							
							... 
							
							
							
							Idea is to have the PluginManager be re-useable from other projects at some point. 
							
						 
						
							2013-09-30 13:14:14 +02:00  
				
					
						
							
							
								 
						
							
								d946299b0a 
								
							 
						 
						
							
							
								
								shift pytest_configure/unconfigure/addoption/namespace hook calling to config object.  
							
							... 
							
							
							
							The _pytest.config module itself is no longer a plugin but the actual
config instance is plugin-registered as ``pytestconfig``.
This allows to put most pytest specific logic to _pytest.config instead
of in the core pluginmanager. 
							
						 
						
							2013-09-30 13:14:14 +02:00  
				
					
						
							
							
								 
						
							
								fad7bd4393 
								
							 
						 
						
							
							
								
								simplify Config constructor  
							
							
							
						 
						
							2013-09-28 22:22:53 +02:00  
				
					
						
							
							
								 
						
							
								725e63db66 
								
							 
						 
						
							
							
								
								improve PYTEST_DEBUG tracing output  
							
							... 
							
							
							
							by putingextra data on a new lines
with additional indent 
							
						 
						
							2012-11-29 10:04:39 +01:00  
				
					
						
							
							
								 
						
							
								b2e87ce027 
								
							 
						 
						
							
							
								
								change pluginmanager.register API to raise ValueError if the plugin object or the name is already registered  
							
							
							
						 
						
							2012-06-16 21:29:04 +02:00  
				
					
						
							
							
								 
						
							
								85f2a78005 
								
							 
						 
						
							
							
								
								fix wrongly committed line  
							
							
							
						 
						
							2011-12-28 07:57:19 +00:00  
				
					
						
							
							
								 
						
							
								e21202b730 
								
							 
						 
						
							
							
								
								fix Jenkins test failures  
							
							
							
						 
						
							2011-12-27 21:03:15 +00:00  
				
					
						
							
							
								 
						
							
								bc8ee95e72 
								
							 
						 
						
							
							
								
								add ini-file "markers" option and a cmdline option "--markers" to show defined markers.  Add "skipif", "xfail" etc. to the set of builtin markers shown with the --markers option.  
							
							
							
						 
						
							2011-11-11 22:56:11 +00:00  
				
					
						
							
							
								 
						
							
								a2f4a11301 
								
							 
						 
						
							
							
								
								refine lsof/FD leakage testing and rework test setup and some of pytest own tests.   Note that the actual diff to non-test code is small.  Also remove some redundant tests (introduced by a copy-paste-error apparently in test_mark.py).  
							
							
							
						 
						
							2011-11-07 18:08:41 +00:00  
				
					
						
							
							
								 
						
							
								650c3bcfde 
								
							 
						 
						
							
							
								
								enhance debug tracing: print trace tags at the end of message and forget about "prefix".  
							
							... 
							
							
							
							Always log to "pytestdebug.log" if "--debug" option is given.
also move related code to pytest_helpconfig plugin. 
							
						 
						
							2011-07-14 19:11:50 +02:00  
				
					
						
							
							
								 
						
							
								f2670651b3 
								
							 
						 
						
							
							
								
								half the overhead for calling a test function by introducing some caching  
							
							
							
						 
						
							2011-03-07 18:28:45 +01:00  
				
					
						
							
							
								 
						
							
								88cfaebbcb 
								
							 
						 
						
							
							
								
								fix issue12 - show plugin versions with "--version" and "--traceconfig" and also document how to add extra information to reporting test header  
							
							
							
						 
						
							2011-01-12 19:39:36 +01:00  
				
					
						
							
							
								 
						
							
								821f493378 
								
							 
						 
						
							
							
								
								check docstring at test time instead of runtime, improve and test warning on assertion turned off (thanks FND for reporting)  
							
							
							
						 
						
							2010-12-09 11:00:31 +01:00  
				
					
						
							
							
								 
						
							
								c7531705fc 
								
							 
						 
						
							
							
								
								refine plugin registration, allow new "-p no:NAME" way to prevent/undo plugin registration  
							
							
							
						 
						
							2010-12-06 16:54:42 +01:00  
				
					
						
							
							
								 
						
							
								bc42cf8ffb 
								
							 
						 
						
							
							
								
								add a way to mark hooks as "tryfirst" or "trylast" to influence its position in a hook chain.  
							
							... 
							
							
							
							Use 'tryfirst' for capturing hooks so they can start capturing as early as possible,
including when conftests add output in runtest_setup hooks. 
							
						 
						
							2010-11-21 23:17:59 +01:00  
				
					
						
							
							
								 
						
							
								a698465487 
								
							 
						 
						
							
							
								
								streamline docs, especially use "import pytest" and "pytest.*" in python code examples instead of "import py" and "py.test.*".  
							
							
							
						 
						
							2010-11-17 22:12:16 +01:00  
				
					
						
							
							
								 
						
							
								929291775e 
								
							 
						 
						
							
							
								
								flat is better than nested (cont'd):  
							
							... 
							
							
							
							- pytest.py is new module, making "python -m pytest" work always
- _pytest/*.py now contains core.py, hookspec and the plugins, no sub packages 
							
						 
						
							2010-11-13 11:10:45 +01:00