parent
							
								
									88915aa57d
								
							
						
					
					
						commit
						81ec29a597
					
				|  | @ -138,7 +138,7 @@ class Collection: | ||||||
| 
 | 
 | ||||||
|     def getbyid(self, id): |     def getbyid(self, id): | ||||||
|         """ return one or more nodes matching the id. """ |         """ return one or more nodes matching the id. """ | ||||||
|         names = filter(None, id.split("::")) |         names = [x for x in id.split("::") if x] | ||||||
|         if names and '/' in names[0]: |         if names and '/' in names[0]: | ||||||
|             names[:1] = names[0].split("/") |             names[:1] = names[0].split("/") | ||||||
|         return self._match([self._topcollector], names) |         return self._match([self._topcollector], names) | ||||||
|  |  | ||||||
|  | @ -170,10 +170,10 @@ class TestCollectDeprecated: | ||||||
|                     if path.basename == "testme.xxx": |                     if path.basename == "testme.xxx": | ||||||
|                         return Module(path, parent=self) |                         return Module(path, parent=self) | ||||||
|                     return super(Directory, self).consider_file(path) |                     return super(Directory, self).consider_file(path) | ||||||
|  |         """) | ||||||
|             #def pytest_collect_file(path, parent): |             #def pytest_collect_file(path, parent): | ||||||
|             #    if path.basename == "testme.xxx": |             #    if path.basename == "testme.xxx": | ||||||
|             #        return Module(path, parent=parent) |             #        return Module(path, parent=parent) | ||||||
|         """) |  | ||||||
|         testme = testdir.makefile('xxx', testme="hello") |         testme = testdir.makefile('xxx', testme="hello") | ||||||
|         config = testdir.parseconfig(testme) |         config = testdir.parseconfig(testme) | ||||||
|         col = testdir.getnode(config, testme) |         col = testdir.getnode(config, testme) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue