[tor-commits] [stem/master] Skipping auth message check when cookie missing

atagar at torproject.org atagar at torproject.org
Mon Mar 26 00:10:02 UTC 2012


commit 896bb442fe9cc3039a98188fd68ddfcba4f0c1e5
Author: Damian Johnson <atagar at torproject.org>
Date:   Sun Mar 25 12:39:35 2012 -0700

    Skipping auth message check when cookie missing
    
    When we first run our tests we don't have an authentication cookie unless we've
    run with the RUN_COOKIE target. We have special handling for this, but it did
    not account for running with an open connection (the default) in which case
    we'd encounter a second exception while trying to check the failure message.
---
 test/integ/connection/authentication.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/test/integ/connection/authentication.py b/test/integ/connection/authentication.py
index 0762b23..aafde5d 100644
--- a/test/integ/connection/authentication.py
+++ b/test/integ/connection/authentication.py
@@ -211,7 +211,7 @@ class TestAuthenticate(unittest.TestCase):
       # auth but the function will short circuit with failure due to the
       # missing file.
       
-      self.assertRaises(stem.connection.UnreadableCookieFile, self._check_auth, auth_type, auth_value)
+      self.assertRaises(stem.connection.UnreadableCookieFile, self._check_auth, auth_type, auth_value, False)
     elif _can_authenticate(auth_type):
       self._check_auth(auth_type, auth_value)
     else:





More information about the tor-commits mailing list