summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_argparse.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-03-02 23:09:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-03-02 23:09:38 (GMT)
commit16f2fd013d4559f1458efbf21c68034d85bb255e (patch)
tree5470ee097dbdf1f7f93eec39c6c99cb22c8effcc /Lib/test/test_argparse.py
parent7124a41da295a39360d423a4c3d49902eeee1a9e (diff)
downloadcpython-16f2fd013d4559f1458efbf21c68034d85bb255e.zip
cpython-16f2fd013d4559f1458efbf21c68034d85bb255e.tar.gz
cpython-16f2fd013d4559f1458efbf21c68034d85bb255e.tar.bz2
Merged revisions 78600-78601 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78600 | benjamin.peterson | 2010-03-02 16:58:01 -0600 (Tue, 02 Mar 2010) | 1 line remove code to avoid BaseException.message bug ........ r78601 | benjamin.peterson | 2010-03-02 17:02:02 -0600 (Tue, 02 Mar 2010) | 1 line remove cross-version compatibility code ........
Diffstat (limited to 'Lib/test/test_argparse.py')
-rw-r--r--Lib/test/test_argparse.py30
1 files changed, 2 insertions, 28 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index 849facb..9e1efa8 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -22,29 +22,9 @@ import unittest
import warnings
import argparse
-from test import support
-
-try:
- from StringIO import StringIO
-except ImportError:
- from io import StringIO
-
-try:
- set
-except NameError:
- from sets import Set as set
-
-try:
- sorted
-except NameError:
-
- def sorted(iterable, reverse=False):
- result = list(iterable)
- result.sort()
- if reverse:
- result.reverse()
- return result
+from io import StringIO
+from test import support
class TestCase(unittest.TestCase):
@@ -4183,12 +4163,6 @@ class TestImportStar(TestCase):
def test_main():
with warnings.catch_warnings():
- # silence Python 2.6 buggy warnings about Exception.message
- warnings.filterwarnings(
- action='ignore',
- message='BaseException.message has been deprecated as of'
- 'Python 2.6',
- category=DeprecationWarning)
# silence warnings about version argument - these are expected
warnings.filterwarnings(
action='ignore',