showversion: no need for `py.path.local` (#6163)
This commit is contained in:
		
						commit
						96c315e439
					
				| 
						 | 
					@ -115,9 +115,10 @@ def pytest_cmdline_parse():
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def showversion(config):
 | 
					def showversion(config):
 | 
				
			||||||
    p = py.path.local(pytest.__file__)
 | 
					 | 
				
			||||||
    sys.stderr.write(
 | 
					    sys.stderr.write(
 | 
				
			||||||
        "This is pytest version {}, imported from {}\n".format(pytest.__version__, p)
 | 
					        "This is pytest version {}, imported from {}\n".format(
 | 
				
			||||||
 | 
					            pytest.__version__, pytest.__file__
 | 
				
			||||||
 | 
					        )
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    plugininfo = getpluginversioninfo(config)
 | 
					    plugininfo = getpluginversioninfo(config)
 | 
				
			||||||
    if plugininfo:
 | 
					    if plugininfo:
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue