Skip to content

Commit

Permalink
Skip some tests on Emscripten.
Browse files Browse the repository at this point in the history
  • Loading branch information
serhiy-storchaka committed Oct 4, 2024
1 parent dafd06c commit b5bace6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Lib/test/test_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,18 @@ def test_date_time_locale(self):
self.roundtrip('%c', slice(0, 6), (1900, 1, 1, 0, 0, 0, 0, 1, 0))

# NB: Dates before 1969 do not work on a number of locales, including C.
@run_with_locales('LC_TIME', 'en_US', 'fr_FR', 'de_DE', 'ja_JP')
@run_with_locales('LC_TIME', 'C', 'en_US', 'fr_FR', 'de_DE', 'ja_JP', 'he_IL', '')
def test_date_locale(self):
# Test %x directive
self.roundtrip('%x', slice(0, 3))

# NB: Dates before 1969 do not work on a number of locales, including C.
@unittest.skipIf(
support.is_emscripten, "musl libc issue on Emscripten, bpo-46390"
)
@run_with_locales('LC_TIME', 'en_US', 'fr_FR', 'de_DE', 'ja_JP')
def test_date_locale2(self):
# Test %x directive
self.roundtrip('%x', slice(0, 3), (1900, 1, 1, 0, 0, 0, 0, 1, 0))

# NB: Does not distinguish AM/PM time on a number of locales.
Expand Down

0 comments on commit b5bace6

Please sign in to comment.