Skip to content

Commit 38c250d

Browse files
committed
Fix python3 simple cache test failures
Minor differences in format/% and lists-as-views fixes.
1 parent 35f1939 commit 38c250d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/saml2/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def get(self, name_id, entity_id, check_not_on_or_after=True):
9696
cni = code(name_id)
9797
(timestamp, info) = self._db[cni][entity_id]
9898
if check_not_on_or_after and time_util.after(timestamp):
99-
raise ToOld("past %s" % timestamp)
99+
raise ToOld("past %s" % str(timestamp))
100100

101101
return info or None
102102

tests/test_32_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_set(self):
3535

3636
(ava, inactive) = self.cache.get_identity(nid[0])
3737
assert inactive == []
38-
assert ava.keys() == ["givenName"]
38+
assert list(ava.keys()) == ["givenName"]
3939
assert ava["givenName"] == ["Derek"]
4040

4141
def test_add_ava_info(self):

0 commit comments

Comments
 (0)