Permalink
Browse files

Use pytest tmpdir support

Signed-off-by: Daniel Farina <drfarina@acm.org>
  • Loading branch information...
1 parent 422b832 commit f74c392687d068acdb4c92ec18990296da62d909 Daniel Farina committed Dec 20, 2011
Showing with 2 additions and 7 deletions.
  1. +2 −7 tests/test_log_help.py
View
9 tests/test_log_help.py
@@ -1,11 +1,6 @@
-import os
-import tempfile
-
import wal_e.log_help
-def test_nonexisting_socket():
- td = tempfile.mkdtemp(prefix='wal_e_test')
-
+def test_nonexisting_socket(tmpdir):
# Must not raise an exception, silently failing is preferred for
# now.
- wal_e.log_help.configure(syslog_address=os.path.join(td, 'bogus'))
+ wal_e.log_help.configure(syslog_address=tmpdir.join('bogus'))

0 comments on commit f74c392

Please sign in to comment.