summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-07 00:29:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-03-07 00:29:44 (GMT)
commit6b31fd0f13f5730b5a9b70be91a0edba3781e194 (patch)
treed7245b47d101409b51d9d779d3a3357c9c62c741 /Lib/test
parent9c4742e6ce2e1107ad07bc40695069e4c83a82c4 (diff)
downloadcpython-6b31fd0f13f5730b5a9b70be91a0edba3781e194.zip
cpython-6b31fd0f13f5730b5a9b70be91a0edba3781e194.tar.gz
cpython-6b31fd0f13f5730b5a9b70be91a0edba3781e194.tar.bz2
eliminate py3k warnings in argparse
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_argparse.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index 944a97d..6676f16 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -73,6 +73,8 @@ class NS(object):
kwarg_str = ', '.join(['%s=%r' % tup for tup in sorted_items])
return '%s(%s)' % (type(self).__name__, kwarg_str)
+ __hash__ = None
+
def __eq__(self, other):
return vars(self) == vars(other)
@@ -1383,6 +1385,8 @@ class RFile(object):
def __init__(self, name):
self.name = name
+ __hash__ = None
+
def __eq__(self, other):
if other in self.seen:
text = self.seen[other]
@@ -1446,6 +1450,8 @@ class WFile(object):
def __init__(self, name):
self.name = name
+ __hash__ = None
+
def __eq__(self, other):
if other not in self.seen:
text = 'Check that file is writable.'
@@ -1511,6 +1517,8 @@ class TestTypeUserDefined(ParserTestCase):
def __init__(self, value):
self.value = value
+ __hash__ = None
+
def __eq__(self, other):
return (type(self), self.value) == (type(other), other.value)
@@ -1533,6 +1541,8 @@ class TestTypeClassicClass(ParserTestCase):
def __init__(self, value):
self.value = value
+ __hash__ = None
+
def __eq__(self, other):
return (type(self), self.value) == (type(other), other.value)