aboutsummaryrefslogtreecommitdiff
path: root/tests/test_read_settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_read_settings.py')
-rw-r--r--tests/test_read_settings.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_read_settings.py b/tests/test_read_settings.py
index 65cb0ae..ac97b18 100644
--- a/tests/test_read_settings.py
+++ b/tests/test_read_settings.py
@@ -20,7 +20,7 @@ class TestReadSettings(unittest.TestCase):
self.assertFalse(self.inv.read_settings())
def test_parse_params(self):
- with tempfile.NamedTemporaryFile() as t:
+ with tempfile.NamedTemporaryFile(mode='w+') as t:
print("""
[foreman]
url=http://127.0.0.1