10000 gh-69714: Increase test coverage for `calendar` cmdline · python/cpython@b850c92 · GitHub
[go: up one dir, main page]

Skip to content

Commit b850c92

Browse files
committed
gh-69714: Increase test coverage for calendar cmdline
1 parent 238c527 commit b850c92

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Lib/test/test_calendar.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,8 +985,11 @@ def test_option_locale(self):
985985
except (locale.Error, ValueError):
986986
self.skipTest('cannot set the system default locale')
987987
for run in self.runners:
988-
output = run('--locale', lang, '--encoding', enc, '2004')
989-
self.assertIn('2004'.encode(enc), output)
988+
for type in ('text', 'html'):
989+
output = run(
990+
'--type', type, '--locale', lang, '--encoding', enc, '2004'
991+
)
992+
self.assertIn('2004'.encode(enc), output)
990993

991994
def test_option_width(self):
992995
self.assertFailure('-w')

0 commit comments

Comments
 (0)
0