diff options
| author | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2008-03-29 15:24:25 (GMT) |
| commit | 5b63acd31e0e40c1a9a9e9762905b0054ff37994 (patch) | |
| tree | 763a6e10d4c0fa64797f5311491a3cbeb0f7e5d9 /Lib/test/test_mailbox.py | |
| parent | 672fbf519568bc295aa64992dcbabe0eebccb5fc (diff) | |
| download | cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.zip cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.gz cpython-5b63acd31e0e40c1a9a9e9762905b0054ff37994.tar.bz2 | |
#2503 make singletons compared with "is" not == or !=
Thanks to Wummel for the patch
Diffstat (limited to 'Lib/test/test_mailbox.py')
| -rw-r--r-- | Lib/test/test_mailbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_mailbox.py b/Lib/test/test_mailbox.py index 83802c1..7a12258 100644 --- a/Lib/test/test_mailbox.py +++ b/Lib/test/test_mailbox.py @@ -630,9 +630,9 @@ class TestMaildir(TestMailbox): "tmp")), "File in wrong location: '%s'" % head) match = pattern.match(tail) - self.assert_(match != None, "Invalid file name: '%s'" % tail) + self.assert_(match is not None, "Invalid file name: '%s'" % tail) groups = match.groups() - if previous_groups != None: + if previous_groups is not None: self.assert_(int(groups[0] >= previous_groups[0]), "Non-monotonic seconds: '%s' before '%s'" % (previous_groups[0], groups[0])) |
