[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):
|
class TestJSONResultArchive(BaseResultArchiveTests):
|
||||||
cls = JSONResultArchive
|
cls = JSONResultArchive
|
||||||
|
|
||||||
|
def setup_method(self, method):
|
||||||
|
py.test.importorskip("simplejson")
|
||||||
|
|
||||||
|
|
||||||
class TestSQLiteResultArchive(BaseResultArchiveTests):
|
class TestSQLiteResultArchive(BaseResultArchiveTests):
|
||||||
cls = SQLiteResultArchive
|
cls = SQLiteResultArchive
|
||||||
|
|
|
@ -55,13 +55,9 @@ class TestConfigCmdlineParsing:
|
||||||
type="int", dest="gdest", help="g value."),
|
type="int", dest="gdest", help="g value."),
|
||||||
)
|
)
|
||||||
""")
|
""")
|
||||||
old = testdir.chdir()
|
py.test.raises(ValueError, """
|
||||||
try:
|
py.test.config._reparse(['-g', '17'])
|
||||||
py.test.raises(ValueError, """
|
""")
|
||||||
py.test.config._reparse(['-g', '17'])
|
|
||||||
""")
|
|
||||||
finally:
|
|
||||||
old.chdir()
|
|
||||||
|
|
||||||
def test_parsing_again_fails(self, tmpdir):
|
def test_parsing_again_fails(self, tmpdir):
|
||||||
config = py.test.config._reparse([tmpdir])
|
config = py.test.config._reparse([tmpdir])
|
||||||
|
|
Loading…
Reference in New Issue