diff options
Diffstat (limited to 'Lib/test/test_argparse.py')
-rw-r--r-- | Lib/test/test_argparse.py | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py index e1bc83af56..7ce2b47d82 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 test_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 StringIO import StringIO +from test import test_support class TestCase(unittest.TestCase): |