[tor-commits] [stem/master] Clean up /tmp/descriptor_dump

atagar at torproject.org atagar at torproject.org
Tue Mar 29 15:45:52 UTC 2016


commit 5f9f6986638b4a4ff193bfa03d7f34a2117ed231
Author: Damian Johnson <atagar at torproject.org>
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')



More information about the tor-commits mailing list