Skip to content

Commit ed6a546

Browse files
committed
address review: classes.py -> number_helper.py
1 parent 0ee08e3 commit ed6a546

File tree

7 files changed

+14
-12
lines changed

7 files changed

+14
-12
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Common test classes.
1+
# Common test classes for numeric types.
22

33
class WithIndex:
44
def __init__(self, value):

Lib/test/test_capi/test_complex.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
import warnings
55

66
from test.support import import_helper
7-
from test.support.classes import (ComplexSubclass, FloatSubclass,
8-
WithFloat, WithComplex)
7+
from test.support.number_helper import (ComplexSubclass, FloatSubclass,
8+
WithFloat, WithComplex)
99
from test.support.testcase import ComplexesAreIdenticalMixin
1010

1111

Lib/test/test_capi/test_float.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import warnings
55

66
from test.support import import_helper
7-
from test.support.classes import FloatSubclass, WithIndex, WithFloat
7+
from test.support.number_helper import FloatSubclass, WithIndex, WithFloat
88

99
_testcapi = import_helper.import_module('_testcapi')
1010
_testlimitedcapi = import_helper.import_module('_testlimitedcapi')

Lib/test/test_capi/test_getargs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
from test.support import import_helper
66
from test.support import script_helper
77
from test.support import warnings_helper
8-
from test.support.classes import (ComplexSubclass, FloatSubclass, WithComplex,
9-
WithFloat, WithIndex, WithInt)
8+
from test.support.number_helper import (ComplexSubclass, FloatSubclass,
9+
WithComplex, WithFloat, WithIndex,
10+
WithInt)
1011
from test.support.testcase import FloatsAreIdenticalMixin
1112
# Skip this test if the _testcapi module isn't available.
1213
_testcapi = import_helper.import_module('_testcapi')

Lib/test/test_capi/test_long.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import test.support as support
44

55
from test.support import import_helper
6-
from test.support.classes import IntSubclass, WithIndex, WithIntAndIndex
6+
from test.support.number_helper import IntSubclass, WithIndex, WithIntAndIndex
77

88
# Skip this test if the _testcapi and _testlimitedcapi modules isn't available.
99
_testcapi = import_helper.import_module('_testcapi')

Lib/test/test_complex.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
VALID_UNDERSCORE_LITERALS,
77
INVALID_UNDERSCORE_LITERALS,
88
)
9-
from test.support.classes import (ComplexSubclass, WithComplex,
10-
WithFloat, WithIndex, WithInt,
11-
OtherComplexSubclass)
9+
from test.support.number_helper import (ComplexSubclass, WithComplex,
10+
WithFloat, WithIndex, WithInt,
11+
OtherComplexSubclass)
1212

1313
from random import random
1414
from math import isnan, copysign

Lib/test/test_float.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@
1313
VALID_UNDERSCORE_LITERALS,
1414
INVALID_UNDERSCORE_LITERALS,
1515
)
16-
from test.support.classes import (FloatSubclass, OtherFloatSubclass, WithFloat,
17-
FloatLikeSubclass, WithIndex, WithInt)
16+
from test.support.number_helper import (FloatSubclass, OtherFloatSubclass,
17+
WithFloat, FloatLikeSubclass,
18+
WithIndex, WithInt)
1819
from math import isinf, isnan, copysign, ldexp
1920
import math
2021

0 commit comments

Comments
 (0)