[svn r63540] fixing shallow test bugs

--HG--
branch : trunk
This commit is contained in:
hpk 2009-04-02 15:33:14 +02:00
parent a72ab92ed6
commit fbf70a35a2
2 changed files with 6 additions and 7 deletions

View File

@ -276,6 +276,9 @@ class BaseResultArchiveTests(object):
class TestJSONResultArchive(BaseResultArchiveTests):
cls = JSONResultArchive
def setup_method(self, method):
py.test.importorskip("simplejson")
class TestSQLiteResultArchive(BaseResultArchiveTests):
cls = SQLiteResultArchive

View File

@ -55,13 +55,9 @@ class TestConfigCmdlineParsing:
type="int", dest="gdest", help="g value."),
)
""")
old = testdir.chdir()
try:
py.test.raises(ValueError, """
py.test.config._reparse(['-g', '17'])
""")
finally:
old.chdir()
py.test.raises(ValueError, """
py.test.config._reparse(['-g', '17'])
""")
def test_parsing_again_fails(self, tmpdir):
config = py.test.config._reparse([tmpdir])