Skip to content

Commit 2fc6c10

Browse files
TemporaryDirectory returns a repr string when running as a function. When using it in an with clause this would work.
1 parent 1b07a26 commit 2fc6c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyff/test/test_md_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class PyFFAPITestResources(PipeLineTest):
159159
@classmethod
160160
def setUpClass(cls):
161161
SignerTestCase.setUpClass()
162-
config.local_copy_dir = tempfile.TemporaryDirectory()
162+
config.local_copy_dir = tempfile.mkdtemp()
163163
cls.templates = TemplateLookup(directories=[os.path.join(cls.datadir, 'mdx')])
164164
cls.mdx = tempfile.NamedTemporaryFile('w').name
165165
# cls.mdx_template = cls.templates.get_template('mdx.fd')

0 commit comments

Comments
 (0)