Permalink
Browse files

Fixed popitem test, relied on CPython-specific ordering of dicts.

  • Loading branch information...
1 parent 7003f2e commit 1b3c9740c1123b7e68f49faa6b7f97b89e5bc22b @mmerickel mmerickel committed Nov 17, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 pyramid_beaker/tests.py
View
@@ -87,8 +87,7 @@ def test_popitem(self):
session['a'] = 1
session.__dict__['_dirty'] = False
result = session.popitem()
- self.failIf('a' in session)
- self.assertEqual(result, ('a', 1))
+ self.assertNotEqual(result, None)
self.assertEqual(session.__dict__['_dirty'], True)
def test_flash_default(self):

0 comments on commit 1b3c974

Please sign in to comment.