Skip to content

Commit

Permalink
pythongh-69714: Increase test coverage for calendar cmdline
Browse files Browse the repository at this point in the history
  • Loading branch information
bxsx committed Jun 9, 2022
1 parent 238c527 commit b850c92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Lib/test/test_calendar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b850c92

Please sign in to comment.