mirror of
https://github.com/python/cpython.git
synced 2025-10-13 10:23:28 +00:00
gh-99482: remove jython
compatibility parts from stdlib and tests (#99484)
This commit is contained in:
parent
c5726b727e
commit
745545b5bb
20 changed files with 134 additions and 232 deletions
|
@ -54,14 +54,10 @@ class StrftimeTest(unittest.TestCase):
|
|||
self.now = now
|
||||
|
||||
def setUp(self):
|
||||
try:
|
||||
import java
|
||||
java.util.Locale.setDefault(java.util.Locale.US)
|
||||
except ImportError:
|
||||
from locale import setlocale, LC_TIME
|
||||
saved_locale = setlocale(LC_TIME)
|
||||
setlocale(LC_TIME, 'C')
|
||||
self.addCleanup(setlocale, LC_TIME, saved_locale)
|
||||
from locale import setlocale, LC_TIME
|
||||
saved_locale = setlocale(LC_TIME)
|
||||
setlocale(LC_TIME, 'C')
|
||||
self.addCleanup(setlocale, LC_TIME, saved_locale)
|
||||
|
||||
def test_strftime(self):
|
||||
now = time.time()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue