From b850c92c01ea8c4922494d6e93f48f9092af8f17 Mon Sep 17 00:00:00 2001 From: Bart Skowron Date: Thu, 9 Jun 2022 02:20:47 +0200 Subject: [PATCH] gh-69714: Increase test coverage for `calendar` cmdline --- Lib/test/test_calendar.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_calendar.py b/Lib/test/test_calendar.py index 5df66f505e81ea..39b47e6fa39ca8 100644 --- a/Lib/test/test_calendar.py +++ b/Lib/test/test_calendar.py @@ -985,8 +985,11 @@ def test_option_locale(self): except (locale.Error, ValueError): self.skipTest('cannot set the system default locale') for run in self.runners: - output = run('--locale', lang, '--encoding', enc, '2004') - self.assertIn('2004'.encode(enc), output) + for type in ('text', 'html'): + output = run( + '--type', type, '--locale', lang, '--encoding', enc, '2004' + ) + self.assertIn('2004'.encode(enc), output) def test_option_width(self): self.assertFailure('-w')