|
|
3fd62d |
From 3b9a02481ff0f98ec9ee40d06d71d2a25d7d0bf3 Mon Sep 17 00:00:00 2001
|
|
|
3fd62d |
From: Robbie Harwood <rharwood@redhat.com>
|
|
|
3fd62d |
Date: Thu, 24 Mar 2016 14:46:02 -0400
|
|
|
3fd62d |
Subject: [PATCH 2/3] Work around bug in Cython 0.19 in test suite
|
|
|
3fd62d |
|
|
|
3fd62d |
Pre-0.21 Cython seems to incorrectly represent integral types as too
|
|
|
3fd62d |
large. However, for our purposes, it is acceptable for them to be
|
|
|
3fd62d |
larger than their declared type, as long as they are integral.
|
|
|
3fd62d |
---
|
|
|
3fd62d |
gssapi/tests/test_raw.py | 20 ++++++++++----------
|
|
|
3fd62d |
1 file changed, 10 insertions(+), 10 deletions(-)
|
|
|
3fd62d |
|
|
|
3fd62d |
diff --git a/gssapi/tests/test_raw.py b/gssapi/tests/test_raw.py
|
|
|
3fd62d |
index 37f6372..23f2e2c 100644
|
|
|
3fd62d |
--- a/gssapi/tests/test_raw.py
|
|
|
3fd62d |
+++ b/gssapi/tests/test_raw.py
|
|
|
3fd62d |
@@ -394,8 +394,8 @@ class TestBaseUtilities(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
actual_mechs.shouldnt_be_empty()
|
|
|
3fd62d |
actual_mechs.should_include(gb.MechType.kerberos)
|
|
|
3fd62d |
|
|
|
3fd62d |
- output_init_ttl.should_be_a(int)
|
|
|
3fd62d |
- output_accept_ttl.should_be_a(int)
|
|
|
3fd62d |
+ output_init_ttl.should_be_an_integer()
|
|
|
3fd62d |
+ output_accept_ttl.should_be_an_integer()
|
|
|
3fd62d |
|
|
|
3fd62d |
new_creds.should_be_a(gb.Creds)
|
|
|
3fd62d |
|
|
|
3fd62d |
@@ -426,7 +426,7 @@ class TestBaseUtilities(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
actual_mechs.shouldnt_be_empty()
|
|
|
3fd62d |
actual_mechs.should_include(gb.MechType.kerberos)
|
|
|
3fd62d |
|
|
|
3fd62d |
- output_ttl.should_be_a(int)
|
|
|
3fd62d |
+ output_ttl.should_be_an_integer()
|
|
|
3fd62d |
# no need to explicitly release any more -- we can just rely on
|
|
|
3fd62d |
# __dealloc__ (b/c cython)
|
|
|
3fd62d |
|
|
|
3fd62d |
@@ -541,8 +541,8 @@ class TestBaseUtilities(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
actual_mechs.shouldnt_be_empty()
|
|
|
3fd62d |
actual_mechs.should_include(gb.MechType.kerberos)
|
|
|
3fd62d |
|
|
|
3fd62d |
- output_init_ttl.should_be_a(int)
|
|
|
3fd62d |
- output_accept_ttl.should_be_a(int)
|
|
|
3fd62d |
+ output_init_ttl.should_be_an_integer()
|
|
|
3fd62d |
+ output_accept_ttl.should_be_an_integer()
|
|
|
3fd62d |
|
|
|
3fd62d |
new_creds.should_be_a(gb.Creds)
|
|
|
3fd62d |
|
|
|
3fd62d |
@@ -618,7 +618,7 @@ class TestBaseUtilities(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
actual_mechs.shouldnt_be_empty()
|
|
|
3fd62d |
actual_mechs.should_include(gb.MechType.kerberos)
|
|
|
3fd62d |
|
|
|
3fd62d |
- output_ttl.should_be_a(int)
|
|
|
3fd62d |
+ output_ttl.should_be_an_integer()
|
|
|
3fd62d |
|
|
|
3fd62d |
@_extension_test('password_add', 'Password (add)')
|
|
|
3fd62d |
def test_add_cred_with_password(self):
|
|
|
3fd62d |
@@ -638,8 +638,8 @@ class TestBaseUtilities(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
actual_mechs.shouldnt_be_empty()
|
|
|
3fd62d |
actual_mechs.should_include(gb.MechType.kerberos)
|
|
|
3fd62d |
|
|
|
3fd62d |
- output_init_ttl.should_be_a(int)
|
|
|
3fd62d |
- output_accept_ttl.should_be_a(int)
|
|
|
3fd62d |
+ output_init_ttl.should_be_an_integer()
|
|
|
3fd62d |
+ output_accept_ttl.should_be_an_integer()
|
|
|
3fd62d |
|
|
|
3fd62d |
new_creds.should_be_a(gb.Creds)
|
|
|
3fd62d |
|
|
|
3fd62d |
@@ -1079,7 +1079,7 @@ class TestWrapUnwrap(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
conf.should_be_a(bool)
|
|
|
3fd62d |
conf.should_be_true()
|
|
|
3fd62d |
|
|
|
3fd62d |
- qop.should_be_a(int)
|
|
|
3fd62d |
+ qop.should_be_an_integer()
|
|
|
3fd62d |
|
|
|
3fd62d |
init_message[1].value.should_be(init_signed_info)
|
|
|
3fd62d |
init_message[2].value.should_be(init_data)
|
|
|
3fd62d |
@@ -1111,7 +1111,7 @@ class TestWrapUnwrap(_GSSAPIKerberosTestCase):
|
|
|
3fd62d |
conf.should_be_a(bool)
|
|
|
3fd62d |
conf.should_be_true()
|
|
|
3fd62d |
|
|
|
3fd62d |
- qop.should_be_a(int)
|
|
|
3fd62d |
+ qop.should_be_an_integer()
|
|
|
3fd62d |
|
|
|
3fd62d |
init_message[1].value.should_be(init_signed_info)
|
|
|
3fd62d |
init_message[2].value.should_be(init_data)
|
|
|
3fd62d |
--
|
|
|
3fd62d |
1.8.3.1
|
|
|
3fd62d |
|