[Pkg-privacy-commits] [txtorcon] 10/96: Make test play nicely on OS X

Jérémy Bobbio lunar at moszumanska.debian.org
Sun Sep 6 18:33:32 UTC 2015


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch master
in repository txtorcon.

commit b2b41c4165c0597624d5959d5c6c7f6f923d44bb
Author: mike warren <mike.warren at chaordix.com>
Date:   Sat Sep 20 22:21:25 2014 -0600

    Make test play nicely on OS X
    
    Something odd with tempdirs that I don't wish to understand.
---
 test/test_endpoints.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/test/test_endpoints.py b/test/test_endpoints.py
index bc77ad1..19ea38c 100644
--- a/test/test_endpoints.py
+++ b/test/test_endpoints.py
@@ -272,10 +272,11 @@ class EndpointTests(unittest.TestCase):
                 t = str(t)
                 os.chdir(t)
                 os.mkdir(os.path.join(t, 'foo'))
-                os.mkdir(os.path.join(t, 'foo', 'blam'))
+                hsdir = os.path.join(t, 'foo', 'blam')
+                os.mkdir(hsdir)
 
                 ep = serverFromString(self.reactor, 'onion:88:localPort=1234:hiddenServiceDir=foo/blam')
-                self.assertEqual(os.path.join(t, 'foo', 'blam'), ep.hidden_service_dir)
+                self.assertEqual(os.path.realpath(hsdir), ep.hidden_service_dir)
 
         finally:
             os.chdir(orig)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/txtorcon.git



More information about the Pkg-privacy-commits mailing list