diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-12-31 21:40:42 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-12-31 21:40:42 -0600 |
commit | 1f7df8f2070391f28391e3594580c07e11b6b32b (patch) | |
tree | ec03dfe4f71df3840232731145b8f6736fc6a314 /Lib/test/test_long.py | |
parent | b25d611f8d9140e83acbfffb6b0579939c88c033 (diff) | |
parent | 10e93a6d40502e100c68090730e0b3190df97854 (diff) | |
download | cpython-git-1f7df8f2070391f28391e3594580c07e11b6b32b.tar.gz |
merge heads
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r-- | Lib/test/test_long.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 58cfc3a2a3..f0847e7ab4 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -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 |