Skip to content

Commit 7a1a56d

Browse files
boegelocaisa
andauthored
fix mistake in test_easystack_restore_env_after_each_build when determine length of tmpdir path in tempfile
Co-authored-by: ocaisa <[email protected]>
1 parent 5628b28 commit 7a1a56d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/framework/easystack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def test_easystack_restore_env_after_each_build(self):
165165
# (because $TMPDIR set by configuration done in main function is retained)
166166
tmpdir_tempfile = tempfile.gettempdir()
167167
tmpdir_env = os.getenv('TMPDIR')
168-
tmpdir_tempfile_len = len(tmpdir_env.split(os.path.sep))
168+
tmpdir_tempfile_len = len(tmpdir_tempfile.split(os.path.sep))
169169
tmpdir_env_len = len(tmpdir_env.split(os.path.sep))
170170

171171
self.assertEqual(tmpdir_tempfile_len, orig_tmpdir_tempfile_len + 2)

0 commit comments

Comments
 (0)