[py-svn] r57314 - py/branch/event/py/test/testing
hpk at codespeak.net
hpk at codespeak.net
Sat Aug 16 15:49:13 CEST 2008
Author: hpk
Date: Sat Aug 16 15:49:12 2008
New Revision: 57314
Modified:
py/branch/event/py/test/testing/test_collect.py
Log:
forgot to checkin test for repr_metainfo
Modified: py/branch/event/py/test/testing/test_collect.py
==============================================================================
--- py/branch/event/py/test/testing/test_collect.py (original)
+++ py/branch/event/py/test/testing/test_collect.py Sat Aug 16 15:49:12 2008
@@ -511,10 +511,9 @@
Item = py.test.collect.Item
item = Item("virtual", parent=modcol)
info = item.repr_metainfo()
- code = py.code.Code(Item.execute)
- assert info.fspath == code.path
- assert info.lineno == code.firstlineno
- assert not info.modpath
+ assert info.fspath == modcol.fspath
+ assert not info.lineno
+ assert info.modpath == "Item"
def test_repr_metainfo_func(self):
item = self.getitem("def test_func(): pass")
More information about the pytest-commit
mailing list