mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 11:49:12 +00:00 
			
		
		
		
	bpo-31904: fix test_doctest.py failures for VxWorks (GH-23419)
Fix test_doctest.py failures for VxWorks by avoiding exact error message checks. (better for everyone all around)
This commit is contained in:
		
							parent
							
								
									6e1eec71f5
								
							
						
					
					
						commit
						8d4f57dbd1
					
				
					 2 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -3039,10 +3039,11 @@ Invalid file name:
 | 
				
			||||||
    ...         '-m', 'doctest', 'nosuchfile')
 | 
					    ...         '-m', 'doctest', 'nosuchfile')
 | 
				
			||||||
    >>> rc, out
 | 
					    >>> rc, out
 | 
				
			||||||
    (1, b'')
 | 
					    (1, b'')
 | 
				
			||||||
 | 
					    >>> # The exact error message changes depending on the platform.
 | 
				
			||||||
    >>> print(normalize(err))                    # doctest: +ELLIPSIS
 | 
					    >>> print(normalize(err))                    # doctest: +ELLIPSIS
 | 
				
			||||||
    Traceback (most recent call last):
 | 
					    Traceback (most recent call last):
 | 
				
			||||||
      ...
 | 
					      ...
 | 
				
			||||||
    FileNotFoundError: [Errno ...] No such file or directory: 'nosuchfile'
 | 
					    FileNotFoundError: [Errno ...] ...nosuchfile...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
Invalid doctest option:
 | 
					Invalid doctest option:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -0,0 +1 @@
 | 
				
			||||||
 | 
					Fix test_doctest.py failures for VxWorks.
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue