Skip to content

Commit cae8d29

Browse files
committed
Python 2.7 compatibilit
1 parent 2b8adba commit cae8d29

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/compilation/test_compile_empty.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import os
12
import tempfile
23

34
import pytest
@@ -12,6 +13,9 @@
1213
def test_compile_empty_folder():
1314
"""Execute compile on a folder without contracts."""
1415

15-
with tempfile.TemporaryDirectory() as tmpdirname:
16+
tmpdirname = tempfile.mkdtemp()
17+
try:
1618
with pytest.raises(ContractsNotFound):
1719
compile_files(tmpdirname)
20+
finally:
21+
os.rmdir(tmpdirname)

0 commit comments

Comments
 (0)