mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-18 05:11:00 +00:00
Do not compare with None in container tests
This commit is contained in:
parent
8c221da089
commit
a3483fcbd3
1 changed files with 4 additions and 2 deletions
|
|
@ -279,12 +279,14 @@ class TestCaselessSortedDict (unittest.TestCase):
|
|||
self.d["C"] = 8
|
||||
prev = None
|
||||
for key in self.d.keys():
|
||||
self.assert_(key > prev)
|
||||
if prev is not None:
|
||||
self.assert_(key > prev)
|
||||
prev = key
|
||||
prev = None
|
||||
for key, value in self.d.items():
|
||||
self.assert_(key > prev)
|
||||
self.assertEqual(value, self.d[key])
|
||||
if prev is not None:
|
||||
self.assert_(key > prev)
|
||||
prev = key
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue