[tor-commits] [bridgedb/master] Avoid having a test for b.persistent.State write to $HOME.

isis at torproject.org isis at torproject.org
Sat Mar 21 02:03:03 UTC 2015


commit 783a8f18e990608ebb915a0bcc4096b34646bc04
Author: Isis Lovecruft <isis at torproject.org>
Date:   Tue Feb 24 22:56:50 2015 +0000

    Avoid having a test for b.persistent.State write to $HOME.
---
 lib/bridgedb/test/test_persistentSaveAndLoad.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bridgedb/test/test_persistentSaveAndLoad.py b/lib/bridgedb/test/test_persistentSaveAndLoad.py
index 67585f6..6d6584d 100644
--- a/lib/bridgedb/test/test_persistentSaveAndLoad.py
+++ b/lib/bridgedb/test/test_persistentSaveAndLoad.py
@@ -88,7 +88,7 @@ class StateSaveAndLoadTests(unittest.TestCase):
         self.assertIsInstance(statefile, basestring)
 
     def test_set_statefile(self):
-        self.state._set_statefile('~/bar.state')
+        self.state._set_statefile('bar.state')
         statefile = self.state._get_statefile()
         self.assertIsInstance(statefile, basestring)
 





More information about the tor-commits mailing list