capture: improve message with DontReadFromInput's IOError
Ref: https://github.com/pytest-dev/pytest/pull/4996#issuecomment-479686487
This commit is contained in:
		
							parent
							
								
									978c7ae1b7
								
							
						
					
					
						commit
						3c14dd7f55
					
				|  | @ -703,7 +703,9 @@ class DontReadFromInput: | ||||||
|     encoding = None |     encoding = None | ||||||
| 
 | 
 | ||||||
|     def read(self, *args): |     def read(self, *args): | ||||||
|         raise IOError("reading from stdin while output is captured") |         raise IOError( | ||||||
|  |             "pytest: reading from stdin while output is captured!  Consider using `-s`." | ||||||
|  |         ) | ||||||
| 
 | 
 | ||||||
|     readline = read |     readline = read | ||||||
|     readlines = read |     readlines = read | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue