mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
This patch also provides a simple way to share tests going forward between test_int and test_long.
This commit is contained in:
parent
33e05e7905
commit
6f70fe8046
2 changed files with 23 additions and 12 deletions
|
@ -1,10 +1,11 @@
|
|||
import unittest
|
||||
from test import test_support
|
||||
import sys
|
||||
|
||||
import random
|
||||
import math
|
||||
|
||||
from test import test_int, test_support
|
||||
|
||||
# Used for lazy formatting of failure messages
|
||||
class Frm(object):
|
||||
def __init__(self, format, *args):
|
||||
|
@ -78,8 +79,9 @@ if test_support.have_unicode:
|
|||
(unichr(0x200), ValueError),
|
||||
]
|
||||
|
||||
class LongTest(test_int.IntLongCommonTests, unittest.TestCase):
|
||||
|
||||
class LongTest(unittest.TestCase):
|
||||
ntype = long
|
||||
|
||||
# Get quasi-random long consisting of ndigits digits (in base BASE).
|
||||
# quasi == the most-significant digit will not be 0, and the number
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue