summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_calendar.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-11-01 15:14:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-11-01 15:14:27 (GMT)
commit9785261d68f62ce33968d15c7a0f10f1f8209807 (patch)
treeaa37c5e251be750409645db8ddb323f33661f2b2 /Lib/test/test_calendar.py
parent17bdf2015d8c46d6418ad7b8742a4fb0d277a642 (diff)
downloadcpython-9785261d68f62ce33968d15c7a0f10f1f8209807.zip
cpython-9785261d68f62ce33968d15c7a0f10f1f8209807.tar.gz
cpython-9785261d68f62ce33968d15c7a0f10f1f8209807.tar.bz2
Issue #18973: Command-line interface of the calendar module now uses argparse
instead of optparse.
Diffstat (limited to 'Lib/test/test_calendar.py')
-rw-r--r--Lib/test/test_calendar.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py
index 80ed632..d9d3128 100644
--- a/Lib/test/test_calendar.py
+++ b/Lib/test/test_calendar.py
@@ -702,19 +702,19 @@ class CommandLineTestCase(unittest.TestCase):
def assertFailure(self, *args):
rc, stdout, stderr = assert_python_failure('-m', 'calendar', *args)
- self.assertIn(b'Usage:', stderr)
+ self.assertIn(b'usage:', stderr)
self.assertEqual(rc, 2)
def test_help(self):
stdout = self.run_ok('-h')
- self.assertIn(b'Usage:', stdout)
+ self.assertIn(b'usage:', stdout)
self.assertIn(b'calendar.py', stdout)
self.assertIn(b'--help', stdout)
def test_illegal_arguments(self):
self.assertFailure('-z')
- #self.assertFailure('spam')
- #self.assertFailure('2004', 'spam')
+ self.assertFailure('spam')
+ self.assertFailure('2004', 'spam')
self.assertFailure('-t', 'html', '2004', '1')
def test_output_current_year(self):