summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-08-23 20:34:01 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-08-23 20:34:01 (GMT)
commit971e0690c4ae81da3d86df82c2aef5872beb3ca3 (patch)
tree1ea994a77ae8545f85e803ba16ee8bda7ad68532
parentc266bb059466a44a3bd656ef35c802b8bbf270fc (diff)
downloadcpython-971e0690c4ae81da3d86df82c2aef5872beb3ca3.zip
cpython-971e0690c4ae81da3d86df82c2aef5872beb3ca3.tar.gz
cpython-971e0690c4ae81da3d86df82c2aef5872beb3ca3.tar.bz2
Remove test_long's expected-output file.
-rw-r--r--Lib/test/output/test_long5
-rw-r--r--Lib/test/test_long.py12
2 files changed, 8 insertions, 9 deletions
diff --git a/Lib/test/output/test_long b/Lib/test/output/test_long
deleted file mode 100644
index 4528264..0000000
--- a/Lib/test/output/test_long
+++ /dev/null
@@ -1,5 +0,0 @@
-test_long
-long / * % divmod
-long bit-operation identities
-long str/hex/oct/atol
-long miscellaneous operations
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 1059ef6..8cbdde5 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -88,7 +88,8 @@ def test_division_2(x, y):
check(y < r <= 0, "bad mod from divmod on", x, y)
def test_division(maxdigits=MAXDIGITS):
- print "long / * % divmod"
+ if verbose:
+ print "long / * % divmod"
digits = range(1, maxdigits+1)
for lenx in digits:
x = getran(lenx)
@@ -149,7 +150,8 @@ def test_bitop_identities_3(x, y, z):
"x | (y & z) != (x | y) & (x | z) for", x, y, z)
def test_bitop_identities(maxdigits=MAXDIGITS):
- print "long bit-operation identities"
+ if verbose:
+ print "long bit-operation identities"
for x in special:
test_bitop_identities_1(x)
digits = range(1, maxdigits+1)
@@ -197,7 +199,8 @@ def test_format_1(x):
got, "but expected", expected, "for", x)
def test_format(maxdigits=MAXDIGITS):
- print "long str/hex/oct/atol"
+ if verbose:
+ print "long str/hex/oct/atol"
for x in special:
test_format_1(x)
for i in range(10):
@@ -208,7 +211,8 @@ def test_format(maxdigits=MAXDIGITS):
# ----------------------------------------------------------------- misc
def test_misc(maxdigits=MAXDIGITS):
- print "long miscellaneous operations"
+ if verbose:
+ print "long miscellaneous operations"
import sys
# check the extremes in int<->long conversion