From 6c428bafbf4d89b33ac917eb9157832318cf6402 Mon Sep 17 00:00:00 2001 From: fijal Date: Sat, 27 Jan 2007 14:01:58 +0100 Subject: [PATCH] [svn r37427] Kill the last occurencies of pkgdir --HG-- branch : trunk --- py/test/rsession/rsession.py | 14 +++++++------- py/test/rsession/testing/test_lsession.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/py/test/rsession/rsession.py b/py/test/rsession/rsession.py index 6806e9cb1..bcd40e54c 100644 --- a/py/test/rsession/rsession.py +++ b/py/test/rsession/rsession.py @@ -227,12 +227,11 @@ class LSession(AbstractSession): reporter, checkfun = self.wrap_reporter(reporter) reporter(report.TestStarted(sshhosts)) - pkgdir = self.getpkgdir(args[0]) colitems = self.config.getcolitems() reporter(report.RsyncFinished()) if runner is None: - runner = self.init_runner(pkgdir) + runner = self.init_runner() keyword = self.config.option.keyword @@ -245,10 +244,10 @@ class LSession(AbstractSession): if not self.config.option.nomagic: py.magic.revoke(assertion=1) - self.write_docs(pkgdir) + self.write_docs() return retval - def write_docs(self, pkgdir): + def write_docs(self): if self.config.option.apigen: from py.__.apigen.tracer.docstorage import DocStorageAccessor apigen = py.path.local(self.config.option.apigen).pyimport() @@ -259,7 +258,8 @@ class LSession(AbstractSession): capture = py.io.OutErrCapture() try: try: - apigen.build(pkgdir, DocStorageAccessor(self.docstorage)) + apigen.build(self.config.topdir, + DocStorageAccessor(self.docstorage)) except AttributeError: import traceback exc, e, tb = sys.exc_info() @@ -272,13 +272,13 @@ class LSession(AbstractSession): finally: capture.reset() - def init_runner(self, pkgdir): + def init_runner(self): if self.config.option.apigen: from py.__.apigen.tracer.tracer import Tracer, DocStorage module = py try: apigen = py.path.local(self.config.option.apigen).pyimport() - items = apigen.get_documentable_items(pkgdir) + items = apigen.get_documentable_items(self.config.topdir) if isinstance(items, dict): self.docstorage = DocStorage().from_dict(items) else: diff --git a/py/test/rsession/testing/test_lsession.py b/py/test/rsession/testing/test_lsession.py index db12b8305..679417061 100644 --- a/py/test/rsession/testing/test_lsession.py +++ b/py/test/rsession/testing/test_lsession.py @@ -286,7 +286,7 @@ class TestLSession(object): all = str(tmpdir) config = py.test.config._reparse(all.split(" ")) lsession = LSession(config) - assert lsession.init_runner(pkgdir) is opt_mapping[opt] + assert lsession.init_runner() is opt_mapping[opt] #tmpdir.dirpath().ensure("conftest.py").write(py.code.Source(""" #dist_boxing=True #"""))