diff --git a/Doc/glossary.rst b/Doc/glossary.rst index f5ca0d9c8dc..3ac1031bbed 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -147,7 +147,7 @@ Glossary dictionary An associative array, where arbitrary keys are mapped to values. The keys - can be any object with :meth:`__hash__` function and :meth:`__eq__` + can be any object with :meth:`__hash__` method and :meth:`__eq__` methods. Called a hash in Perl. docstring diff --git a/Lib/test/test_ast.py b/Lib/test/test_ast.py index b809d24c007..e11246c66ad 100644 --- a/Lib/test/test_ast.py +++ b/Lib/test/test_ast.py @@ -200,9 +200,6 @@ class AST_Tests(unittest.TestCase): with self.assertRaises(AttributeError): x.vararg - with self.assertRaises(AttributeError): - x.foobar = 21 - with self.assertRaises(AttributeError): ast.AST(lineno=2)