b840622819 
								
							 
						 
						
							
							
								
								Fixed E302 flake8 errors  
							
							... 
							
							
							
							expected 2 blank lines, found 0 
							
						 
						
							2017-07-17 01:44:23 +02:00  
				
					
						
							
							
								 
						
							
								6146ac97d9 
								
							 
						 
						
							
							
								
								Fixed E101 flake8 errors  
							
							... 
							
							
							
							indentation contains mixed spaces and tabs 
							
						 
						
							2017-07-17 01:28:16 +02: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  
				
					
						
							
							
								 
						
							
								fb0b90646e 
								
							 
						 
						
							
							
								
								New-style classes implemented for python 2.7 -  #2147  
							
							
							
						 
						
							2017-02-16 20:28:17 +01:00  
				
					
						
							
							
								 
						
							
								6d81c684cc 
								
							 
						 
						
							
							
								
								Switch monkeypatch fixture to yield syntax  
							
							
							
						 
						
							2017-01-04 15:06:52 -08:00  
				
					
						
							
							
								 
						
							
								707b6b5e3f 
								
							 
						 
						
							
							
								
								Revert all invocation-fixtures code  
							
							... 
							
							
							
							Due to a serious regression found in #1794 , it was decided to pull off
invocation features from 3.0 so it can be (hopefully) re-introduced
in 3.1 
							
						 
						
							2016-08-17 08:12:55 -03:00  
				
					
						
							
							
								 
						
							
								05f3422d7c 
								
							 
						 
						
							
							
								
								Make monkeypatch invocation-scoped  
							
							
							
						 
						
							2016-07-20 22:05:49 -03:00  
				
					
						
							
							
								 
						
							
								458ecae1df 
								
							 
						 
						
							
							
								
								Replace all usages of "pytest_funcarg__" for @pytest.fixture  
							
							
							
						 
						
							2016-07-11 22:21:52 -03:00  
				
					
						
							
							
								 
						
							
								b825af2e66 
								
							 
						 
						
							
							
								
								pass trough annotated exceptions  
							
							
							
						 
						
							2016-01-23 19:31:17 +01:00  
				
					
						
							
							
								 
						
							
								60e9698530 
								
							 
						 
						
							
							
								
								fix issue 1338  
							
							
							
						 
						
							2016-01-23 19:12:51 +01:00  
				
					
						
							
							
								 
						
							
								9e6bb74d71 
								
							 
						 
						
							
							
								
								reformat monkeypatch core plugin/its tests  
							
							
							
						 
						
							2016-01-23 19:12:51 +01:00  
				
					
						
							
							
								 
						
							
								8d49abb0d1 
								
							 
						 
						
							
							
								
								Make monkeypatch differentiate ImportError sources  
							
							... 
							
							
							
							Previously `monkeypatch` assumed that any `ImportError` was caused by
a mistake in the specified import path. However this assumption is false 
in case the import target itself causes an `ImportError`.
Fixes : #900  
							
						 
						
							2015-12-27 22:44:23 +01:00  
				
					
						
							
							
								 
						
							
								b40f760cc3 
								
							 
						 
						
							
							
								
								Change links from bitbucket to GitHub  
							
							
							
						 
						
							2015-06-15 18:28:31 -03:00  
				
					
						
							
							
								 
						
							
								ff8d787cd5 
								
							 
						 
						
							
							
								
								Fix monkeypatch.setenv with string and raising=False.  
							
							... 
							
							
							
							Fixes  #746 . 
						
							2015-05-19 22:59:49 +02:00  
				
					
						
							
							
								 
						
							
								d18124f5ed 
								
							 
						 
						
							
							
								
								support python32  
							
							... 
							
							
							
							--HG--
branch : python32-test-fix 
							
						 
						
							2013-11-12 13:48:17 +01:00  
				
					
						
							
							
								 
						
							
								0d8392bc45 
								
							 
						 
						
							
							
								
								fix unicode handling with new monkeypatch.setattr(import_path, value)  
							
							... 
							
							
							
							API.  Thanks Rob Dennis.  Fixes issue371. 
							
						 
						
							2013-10-21 14:01:02 +02:00  
				
					
						
							
							
								 
						
							
								39503932a4 
								
							 
						 
						
							
							
								
								merge monkeypatch.replace into monkeypatch.setattr, also support monkeypatch.delattr.  
							
							
							
						 
						
							2013-09-27 12:33:06 +02:00  
				
					
						
							
							
								 
						
							
								4b88d6d2d7 
								
							 
						 
						
							
							
								
								monkeypatch.replace() now only accepts a string.  Improved error handling and  
							
							... 
							
							
							
							docs thanks to suggestions from flub, pelme, schmir, ronny. 
							
						 
						
							2013-08-07 16:49:29 +02:00  
				
					
						
							
							
								 
						
							
								407283ef81 
								
							 
						 
						
							
							
								
								a new monkeypatch.replace(target, value) call which derives the  
							
							... 
							
							
							
							monkeypatch location from target (can be class/module/function or
string which is taken as importable python path)
examples:
    monkeypatch.replace(os.path.abspath, lambda x: "")
    monkeypatch.replace("requests.get", ...) 
							
						 
						
							2013-08-07 15:35:27 +02:00  
				
					
						
							
							
								 
						
							
								35cbb5791d 
								
							 
						 
						
							
							
								
								fixes issue 156: monkeypatch class level descriptors  
							
							
							
						 
						
							2012-09-25 18:15:13 +02:00  
				
					
						
							
							
								 
						
							
								41ad7dbae1 
								
							 
						 
						
							
							
								
								fix issue185 monkeypatching time.time does not cause pytest to fail  
							
							
							
						 
						
							2012-09-01 09:58:10 +02:00  
				
					
						
							
							
								 
						
							
								93424b0f9c 
								
							 
						 
						
							
							
								
								add monkeypatch.chdir method  
							
							
							
						 
						
							2012-01-04 12:43:19 +01:00  
				
					
						
							
							
								 
						
							
								4131923c0f 
								
							 
						 
						
							
							
								
								test that a second undo doesn't change sys.path  
							
							... 
							
							
							
							also use a 'mp' funcarg that restores sys.path and the current working
directory in preparation for the monkeypatch.chdir method. 
							
						 
						
							2012-01-04 12:40:57 +01:00  
				
					
						
							
							
								 
						
							
								fa6d5bd15b 
								
							 
						 
						
							
							
								
								work around an apparent python2.4/python2.5 bug with subprocess.Popen,  
							
							... 
							
							
							
							causing jenkins failures.  Apparently "os.environ.popitem(name, None)"
is not the same as::
    try:
        del os.environ[name]
    except KeyError:
        pass 
							
						 
						
							2011-12-28 15:49:13 +00:00  
				
					
						
							
							
								 
						
							
								5093d8b925 
								
							 
						 
						
							
							
								
								fix test to actually mean something useful (thanks Jurko)  
							
							
							
						 
						
							2011-12-18 10:56:39 +00:00  
				
					
						
							
							
								 
						
							
								40187ec9bb 
								
							 
						 
						
							
							
								
								robustify monkeypatch  
							
							
							
						 
						
							2011-12-16 22:41:23 +00: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  
				
					
						
							
							
								 
						
							
								076e03e90f 
								
							 
						 
						
							
							
								
								also un-nest test directory  
							
							
							
						 
						
							2010-11-13 11:30:40 +01:00