[svn r63540] fixing shallow test bugs
--HG-- branch : trunk
This commit is contained in:
parent
a72ab92ed6
commit
fbf70a35a2
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Reference in New Issue