Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(17)  |  Call(17)  |  Derive(0)  |  Import(0)
getcwd() -> path

Return a string representing the current working directory.

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/test/config.py   plexnet(Download)
        args = self._parser.parse_setoption(args, self.option)
        if not args:
            args.append(py.std.os.getcwd())
        self.topdir = gettopdir(args)
        self.args = [py.path.local(x) for x in args]

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/path/local/testing/test_local.py   plexnet(Download)
    def test_initialize_curdir(self):
        assert str(local()) == py.std.os.getcwd()
 
    def test_initialize_reldir(self):
        old = self.root.chdir()
            res = tmpdir.chdir()
            assert str(res) == str(old)
            assert py.std.os.getcwd() == str(tmpdir)
        finally:
            old.chdir()

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/execnet/testing/test_xspec.py   plexnet(Download)
        rinfo = gw._rinfo()
        assert rinfo.executable == py.std.sys.executable 
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info == py.std.sys.version_info
 
        rinfo = gw._rinfo()
        assert rinfo.executable == py.std.sys.executable 
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info == py.std.sys.version_info
 
        if py.std.sys.platform != "darwin": # it's confusing there 
            assert rinfo.executable == cpython24  
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info[:2] == (2,4)
 
        rinfo = gw._rinfo()
        assert rinfo.executable == cpython26
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info[:2] == (2,6)
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/py/execnet/testing/test_gateway.py   plexnet(Download)
    def test_rinfo_popen(self):
        #rinfo = py.execnet.PopenGateway()._rinfo()
        rinfo = self.gw._rinfo()
        assert rinfo.executable == py.std.sys.executable 
        assert rinfo.cwd == py.std.os.getcwd()

src/n/u/nupic-linux64-HEAD/lib/python2.6/site-packages/_pytest/config.py   nupic-linux64(Download)
        args = self._parser.parse_setoption(args, self.option)
        if not args:
            args.append(py.std.os.getcwd())
        self.args = args
 

src/p/y/py-1.4.20/testing/path/test_local.py   py(Download)
    def test_initialize_curdir(self):
        assert str(local()) == py.std.os.getcwd()
 
    @skiponwin32
    def test_chdir_gone(self, path1):
            res = tmpdir.chdir()
            assert str(res) == str(old)
            assert py.std.os.getcwd() == str(tmpdir)
        finally:
            old.chdir()

src/e/x/execnet-1.2.0/testing/test_xspec.py   execnet(Download)
        rinfo = gw._rinfo()
        #assert rinfo.executable == py.std.sys.executable
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info == py.std.sys.version_info
 
        rinfo = gw._rinfo()
        assert rinfo.executable == py.std.sys.executable
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info == py.std.sys.version_info
 
        if py.std.sys.platform != "darwin": # it's confusing there
            assert rinfo.executable == cpython25
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info[:2] == (2,5)
 
        rinfo = gw._rinfo()
        #assert rinfo.executable == cpython26
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info[:2] == (2,6)
 

src/e/x/execnet-1.2.0/testing/test_gateway.py   execnet(Download)
    def test_rinfo_popen(self, gw):
        rinfo = gw._rinfo()
        assert rinfo.executable == py.std.sys.executable
        assert rinfo.cwd == py.std.os.getcwd()
        assert rinfo.version_info == py.std.sys.version_info

src/p/y/pytest-2.5.2/_pytest/config.py   pytest(Download)
        args = self._parser.parse_setoption(args, self.option)
        if not args:
            args.append(py.std.os.getcwd())
        self.args = args