summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_symtable.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-02-26 19:07:18 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-02-26 19:07:18 (GMT)
commitb3dd5485da12739d71890828a2e2d457b9f633c0 (patch)
treee2e4bcc725b300443b7131056ddcacf0143f2bbf /Lib/test/test_symtable.py
parent7bee77c8763cbcb02264bfc147c6c932134b924a (diff)
downloadcpython-b3dd5485da12739d71890828a2e2d457b9f633c0.zip
cpython-b3dd5485da12739d71890828a2e2d457b9f633c0.tar.gz
cpython-b3dd5485da12739d71890828a2e2d457b9f633c0.tar.bz2
remove deprecated symtable.Symbol methods
Diffstat (limited to 'Lib/test/test_symtable.py')
-rw-r--r--Lib/test/test_symtable.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Lib/test/test_symtable.py b/Lib/test/test_symtable.py
index f1fa18a..cdb216b 100644
--- a/Lib/test/test_symtable.py
+++ b/Lib/test/test_symtable.py
@@ -55,22 +55,6 @@ class SymtableTest(unittest.TestCase):
internal = find_block(spam, "internal")
foo = find_block(top, "foo")
- def test_noops(self):
- # Check methods that don't work. They should warn and return False.
- def check(w, msg):
- self.assertEqual(str(w.message), msg)
- sym = self.top.lookup("glob")
- with test_support.check_warnings() as w:
- warnings.simplefilter("always", DeprecationWarning)
- self.assertFalse(sym.is_vararg())
- check(w, "is_vararg() is obsolete and will be removed")
- w.reset()
- self.assertFalse(sym.is_keywordarg())
- check(w, "is_keywordarg() is obsolete and will be removed")
- w.reset()
- self.assertFalse(sym.is_in_tuple())
- check(w, "is_in_tuple() is obsolete and will be removed")
-
def test_type(self):
self.assertEqual(self.top.get_type(), "module")
self.assertEqual(self.Mine.get_type(), "class")