Skip to content

Commit 6fb7788

Browse files
committed
TODO's in tests dir for python version compat
1 parent 8b18116 commit 6fb7788

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_apply.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
import pytest
1414
import hcl2
1515

16+
# TODO set up the tests to run with tox so we can run the tests with different python versions
17+
1618

1719
THIS_PATH = os.path.abspath(os.path.dirname(__file__))
1820
ROOT_PATH = os.path.join(THIS_PATH, "..")
@@ -452,6 +454,7 @@ def get_version():
452454

453455

454456
def deploy_tf_script(script: str, cleanup: bool = True, env_vars: Dict[str, str] = None, user_input: str = None):
457+
# TODO the delete keyword was added in python 3.12, and the README and setup.cfg claims compatibility with earlier python versions
455458
with tempfile.TemporaryDirectory(delete=cleanup) as temp_dir:
456459
with open(os.path.join(temp_dir, "test.tf"), "w") as f:
457460
f.write(script)

0 commit comments

Comments
 (0)