summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeikki Toivonen <heikki@heikkitoivonen.net>2006-12-04 21:27:27 +0000
committerHeikki Toivonen <heikki@heikkitoivonen.net>2006-12-04 21:27:27 +0000
commit0d6ec0b3991ceec517ebc38c46b73e5e73c8fe2e (patch)
treec2a07933f90d5b9a7bcbea45216e22d6f3080b38
parent2aaf18ceea0e1ac55efe2386220d9ef21d8977d5 (diff)
downloadm2crypto-0d6ec0b3991ceec517ebc38c46b73e5e73c8fe2e.tar.gz
Bug 7451, it seems Python 2.5 does not output a semicolon when there is just
one cookie to set, so changing the test to account for that difference. git-svn-id: http://svn.osafoundation.org/m2crypto/trunk@484 2715db39-9adf-0310-9c64-84f055769b4b
-rw-r--r--tests/test_authcookie.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_authcookie.py b/tests/test_authcookie.py
index ae17b91..6352d88 100644
--- a/tests/test_authcookie.py
+++ b/tests/test_authcookie.py
@@ -4,13 +4,15 @@
Copyright (c) 1999-2002 Ng Pheng Siong. All rights reserved."""
-import Cookie, binascii, time, unittest
+import Cookie, binascii, time, unittest, sys
from M2Crypto.AuthCookie import AuthCookie, AuthCookieJar, mix, unmix, unmix3
from M2Crypto import Rand, EVP
class AuthCookieTestCase(unittest.TestCase):
- _format = 'Set-Cookie: _M2AUTH_="exp=%s&data=%s&digest=%s";'
+ _format = 'Set-Cookie: _M2AUTH_="exp=%s&data=%s&digest=%s"'
+ if sys.version_info < (2,5):
+ _format += ';'
_token = '_M2AUTH_'
def setUp(self):