mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
#2621 rename test.test_support to test.support
This commit is contained in:
parent
6a654814ea
commit
ee8712cda4
358 changed files with 1308 additions and 1307 deletions
|
@ -1,7 +1,7 @@
|
|||
|
||||
import unittest, struct
|
||||
import os
|
||||
from test import test_support
|
||||
from test import support
|
||||
import math
|
||||
from math import isinf, isnan
|
||||
import operator
|
||||
|
@ -28,7 +28,7 @@ class GeneralFloatCases(unittest.TestCase):
|
|||
# Implementation limitation in PyFloat_FromString()
|
||||
self.assertRaises(ValueError, float, unicode("1"*10000))
|
||||
|
||||
@test_support.run_with_locale('LC_NUMERIC', 'fr_FR', 'de_DE')
|
||||
@support.run_with_locale('LC_NUMERIC', 'fr_FR', 'de_DE')
|
||||
def test_float_with_comma(self):
|
||||
# set locale to something that doesn't use '.' for the decimal point
|
||||
# float must not accept the locale specific decimal point but
|
||||
|
@ -361,7 +361,7 @@ class InfNanTest(unittest.TestCase):
|
|||
|
||||
|
||||
def test_main():
|
||||
test_support.run_unittest(
|
||||
support.run_unittest(
|
||||
FormatFunctionsTestCase,
|
||||
UnknownFormatTestCase,
|
||||
IEEEFormatTestCase,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue