summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-06-05 19:07:39 (GMT)
committerGuido van Rossum <guido@python.org>2002-06-05 19:07:39 (GMT)
commitd842e07470e9371eb3bf44d02c0153b66cf2164b (patch)
tree43324c03a3dd8367dbae4cc3cff28a1d2f98e730 /Lib/test
parent84fca948c8e90dae94c5815d8b9ae2ff2331b676 (diff)
downloadcpython-d842e07470e9371eb3bf44d02c0153b66cf2164b.zip
cpython-d842e07470e9371eb3bf44d02c0153b66cf2164b.tar.gz
cpython-d842e07470e9371eb3bf44d02c0153b66cf2164b.tar.bz2
SF bug 558179.
Change default for get() back to None. Will backport to 2.2.1.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_pyclbr.py2
-rw-r--r--Lib/test/test_rfc822.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pyclbr.py b/Lib/test/test_pyclbr.py
index c745720..0f3319f 100644
--- a/Lib/test/test_pyclbr.py
+++ b/Lib/test/test_pyclbr.py
@@ -105,7 +105,7 @@ class PyclbrTest(unittest.TestCase):
'_isfunction',
'_ismodule',
'_classify_class_attrs'])
- self.checkModule('rfc822')
+ self.checkModule('rfc822', ignore=["get"])
self.checkModule('difflib')
def test_others(self):
diff --git a/Lib/test/test_rfc822.py b/Lib/test/test_rfc822.py
index 6add15b..756c5c7 100644
--- a/Lib/test/test_rfc822.py
+++ b/Lib/test/test_rfc822.py
@@ -18,7 +18,7 @@ class MessageTestCase(unittest.TestCase):
'To: "last, first" <userid@foo.net>\n\ntest\n')
self.assert_(msg.get("to") == '"last, first" <userid@foo.net>')
self.assert_(msg.get("TO") == '"last, first" <userid@foo.net>')
- self.assert_(msg.get("No-Such-Header") == "")
+ self.assert_(msg.get("No-Such-Header") is None)
self.assert_(msg.get("No-Such-Header", "No-Such-Value")
== "No-Such-Value")