Skip to content

Commit e90c05d

Browse files
committed
issue #591: fix test for Ansible 2.3.
1 parent 0b7fd3f commit e90c05d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ansible/regression/issue_591__setuptools_cwd_crash.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
- custom_python_run_script:
1212
script: |
1313
import os
14-
os.chdir(module.tmpdir)
14+
try:
15+
os.chdir(module.tmpdir)
16+
except:
17+
# Ansible 2.3.
18+
os.chdir(os.path.dirname(__file__))
1519
1620
# Will crash if process has a nonexistent CWD.
1721
- custom_python_os_getcwd:

0 commit comments

Comments
 (0)