[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [stem/master] Clean up /tmp/descriptor_dump
commit 5f9f6986638b4a4ff193bfa03d7f34a2117ed231
Author: Damian Johnson <atagar@xxxxxxxxxxxxxx>
Date: Tue Mar 29 08:45:40 2016 -0700
Clean up /tmp/descriptor_dump
Leftover test file that isn't getting cleaned up. Caught by toralf.
---
test/unit/tutorial_examples.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/unit/tutorial_examples.py b/test/unit/tutorial_examples.py
index 3b9d1a0..a21937f 100644
--- a/test/unit/tutorial_examples.py
+++ b/test/unit/tutorial_examples.py
@@ -3,6 +3,7 @@ Tests for the examples given in stem's tutorial.
"""
import itertools
+import os
import unittest
try:
@@ -344,3 +345,6 @@ class TestTutorialExamples(unittest.TestCase):
exec_documentation_example('persisting_a_consensus_with_parse_file.py')
self.assertEqual(PERSISTING_A_CONSENSUS_OUTPUT, stdout_mock.getvalue())
+
+ if os.path.exists('/tmp/descriptor_dump'):
+ os.remove('/tmp/descriptor_dump')
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits