Skip to content

Commit 57c5f88

Browse files
Update src/openfermion/chem/molecular_data_test.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent ca33b65 commit 57c5f88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/openfermion/chem/molecular_data_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ def test_missing_calcs_for_integrals(self):
352352

353353
def test_load_no_general_calculations(self):
354354
# Make fake molecule.
355-
with tempfile.NamedTemporaryFile(suffix='.hdf5') as tmp:
356-
filename = tmp.name
355+
with tempfile.TemporaryDirectory() as tmp_dir:
356+
filename = os.path.join(tmp_dir, 'test_molecule.hdf5')
357357
geometry = [('H', (0.0, 0.0, 0.0)), ('H', (0.0, 0.0, 0.7414))]
358358
basis = '6-31g*'
359359
multiplicity = 1

0 commit comments

Comments
 (0)