From 94759e935d6c2d990ffe5a11765ca5356c6fea85 Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Fri, 4 Mar 2022 17:43:20 -0800 Subject: [PATCH] Address easy PR comments. --- signac/contrib/project.py | 5 +++-- tests/test_shell.py | 1 - 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/signac/contrib/project.py b/signac/contrib/project.py index 4470adc28..9dfd84420 100644 --- a/signac/contrib/project.py +++ b/signac/contrib/project.py @@ -99,7 +99,7 @@ class Project: ---------- root : str, optional The project root directory. By default, the current working directory - working directory (Default value = None). + (Default value = None). """ @@ -119,7 +119,8 @@ class Project: def __init__(self, root=None): if root is None: root = os.getcwd() - # Project constructor does not discover, so the root must be exact. + # Project constructor does not search upward, so the provided root must + # be a project directory. config = load_config(root, local=True) self._config = _ProjectConfig(config) self._lock = RLock() diff --git a/tests/test_shell.py b/tests/test_shell.py index b278dda75..2c48a7065 100644 --- a/tests/test_shell.py +++ b/tests/test_shell.py @@ -49,7 +49,6 @@ def setUp(self, request): pythonpath = [os.getcwd()] + pythonpath.split(":") os.environ["PYTHONPATH"] = ":".join(pythonpath) self.tmpdir = TemporaryDirectory(prefix="signac_") - self.project_name = f"Project({repr(os.path.realpath(self.tmpdir.name))})" request.addfinalizer(self.tmpdir.cleanup) self.cwd = os.getcwd() os.chdir(self.tmpdir.name)