Merge pull request #6119 from blueyed/FSCollector-fspath
FSCollector: keep/use given fspath
This commit is contained in:
		
						commit
						9071a2a5e0
					
				| 
						 | 
					@ -383,8 +383,9 @@ def _check_initialpaths_for_relpath(session, fspath):
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class FSCollector(Collector):
 | 
					class FSCollector(Collector):
 | 
				
			||||||
    def __init__(self, fspath, parent=None, config=None, session=None, nodeid=None):
 | 
					    def __init__(
 | 
				
			||||||
        fspath = py.path.local(fspath)  # xxx only for test_resultlog.py?
 | 
					        self, fspath: py.path.local, parent=None, config=None, session=None, nodeid=None
 | 
				
			||||||
 | 
					    ) -> None:
 | 
				
			||||||
        name = fspath.basename
 | 
					        name = fspath.basename
 | 
				
			||||||
        if parent is not None:
 | 
					        if parent is not None:
 | 
				
			||||||
            rel = fspath.relto(parent.fspath)
 | 
					            rel = fspath.relto(parent.fspath)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue