9ef608ef76 
								
							 
						 
						
							
							
								
								"fix" a couple of http -> https redirects  
							
							... 
							
							
							
							Found with
urli-fix . -a http: -i pytest 
							
						 
						
							2021-04-26 17:44:27 +02:00  
				
					
						
							
							
								 
						
							
								b706a2c048 
								
							 
						 
						
							
							
								
								Fix error with --import-mode=importlib and modules containing dataclasses or pickle ( #7870 )  
							
							... 
							
							
							
							Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com>
Fixes  #7856 , fixes  #7859  
							
						 
						
							2021-04-05 17:10:03 -03:00  
				
					
						
							
							
								 
						
							
								945cc0b5a1 
								
							 
						 
						
							
							
								
								testing: stop relying on comparing to py.path in fnmatcher tests  
							
							
							
						 
						
							2021-03-20 21:58:45 +02:00  
				
					
						
							
							
								 
						
							
								77cb110258 
								
							 
						 
						
							
							
								
								drop usage of py.path.local calls  
							
							... 
							
							
							
							Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> 
							
						 
						
							2021-03-06 21:32:03 +01:00  
				
					
						
							
							
								 
						
							
								4faed28261 
								
							 
						 
						
							
							
								
								testing: convert some tmpdir to tmp_path  
							
							... 
							
							
							
							The tmpdir fixture (and its factory variant) is soft-deprecated in favor
of the tmp_path fixture. 
							
						 
						
							2020-12-22 21:08:25 +02:00  
				
					
						
							
							
								 
						
							
								572dfcd160 
								
							 
						 
						
							
							
								
								Compare also paths on Windows when considering ImportPathMismatchError  
							
							... 
							
							
							
							On Windows, os.path.samefile returns false for paths mounted in UNC paths which
point to the same location.
I couldn't reproduce the actual case reported, but looking at the code it seems
this commit should fix the issue.
Fix  #7678 
Fix  #8076  
							
						 
						
							2020-12-12 08:54:49 -03:00  
				
					
						
							
							
								 
						
							
								8a38e7a6e8 
								
							 
						 
						
							
							
								
								Fix handling recursive symlinks  
							
							... 
							
							
							
							When pytest was run on a directory containing a recursive symlink it failed
with ELOOP as the library was not able to determine the type of the
direntry:
src/_pytest/main.py:685: in collect
    if not direntry.is_file():
E   OSError: [Errno 40] Too many levels of symbolic links: '/home/florian/proj/pytest/tests/recursive'
This is fixed by handling ELOOP and other errors in the visit function in
pathlib.py, so the entries whose is_file() call raises an OSError with the
pre-defined list of error numbers will be exluded from the result.
The _ignore_errors function was copied from Lib/pathlib.py of cpython 3.9.
Fixes  #7951  
							
						 
						
							2020-10-31 17:40:56 +01:00  
				
					
						
							
							
								 
						
							
								fb1d550aac 
								
							 
						 
						
							
							
								
								py36+: remove rexport of Path and PurePath  
							
							
							
						 
						
							2020-10-03 12:16:52 -07:00  
				
					
						
							
							
								 
						
							
								e0d0951945 
								
							 
						 
						
							
							
								
								pathlib: add analogues to py.path.local's bestrelpath and common  
							
							... 
							
							
							
							An equivalent for these py.path.local functions is needed for some
upcoming py.path -> pathlib conversions. 
							
						 
						
							2020-08-06 18:16:04 +03:00  
				
					
						
							
							
								 
						
							
								b8471aa527 
								
							 
						 
						
							
							
								
								testing: fix some docstring issues  
							
							... 
							
							
							
							In preparation for enforcing some docstring lints. 
							
						 
						
							2020-08-03 10:10:43 +03:00  
				
					
						
							
							
								 
						
							
								e7c42ae62b 
								
							 
						 
						
							
							
								
								Inaccessible lock files now imply temporary directories can't be removed  
							
							... 
							
							
							
							Fix  #7500 
Co-authored-by: Ran Benita <ran@unusedvar.com> 
						
							2020-07-15 09:25:17 -03:00  
				
					
						
							
							
								 
						
							
								f00bec2a12 
								
							 
						 
						
							
							
								
								Replace yield_fixture -> fixture in internal code  
							
							... 
							
							
							
							`yield_fixture` is a deprecated alias to `fixture`. 
							
						 
						
							2020-06-25 14:05:46 +03:00  
				
					
						
							
							
								 
						
							
								ab6dacf1d1 
								
							 
						 
						
							
							
								
								Introduce --import-mode=importlib ( #7246 )  
							
							... 
							
							
							
							Fix  #5821 
Co-authored-by: Ran Benita <ran@unusedvar.com> 
						
							2020-06-13 11:29:01 -03:00  
				
					
						
							
							
								 
						
							
								ab331c906e 
								
							 
						 
						
							
							
								
								Suppress errors while removing tmpdir's lock files  
							
							... 
							
							
							
							Fix  #5456  
						
							2020-06-11 18:59:51 -03:00  
				
					
						
							
							
								 
						
							
								fe64093411 
								
							 
						 
						
							
							
								
								Fix removal of very long paths on Windows ( #6755 )  
							
							... 
							
							
							
							Co-authored-by: Bruno Oliveira <nicoddemus@gmail.com> 
							
						 
						
							2020-06-02 08:56:33 -03:00  
				
					
						
							
							
								 
						
							
								4cd08f9b52 
								
							 
						 
						
							
							
								
								Switch from deprecated imp to importlib  
							
							
							
						 
						
							2019-06-24 09:48:38 -07:00  
				
					
						
							
							
								 
						
							
								5034399d7a 
								
							 
						 
						
							
							
								
								pre-commit run fix-encoding-pragma --all-files  
							
							
							
						 
						
							2019-06-03 12:08:01 -03:00  
				
					
						
							
							
								 
						
							
								dc75b6af47 
								
							 
						 
						
							
							
								
								Use fix-encoding-pragma pre-commit hook  
							
							
							
						 
						
							2019-05-14 15:56:31 -07:00  
				
					
						
							
							
								 
						
							
								f20eeebde9 
								
							 
						 
						
							
							
								
								Fix access denied error when deleting a stale temporary directory  
							
							... 
							
							
							
							Fix  #4262  
						
							2018-10-30 15:35:53 -03:00