✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ beluga.o2switch.net ​🇻​♯➤ 4.18.0-553.123.2.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2026

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 185.154.139.77 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.254
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python36/lib64/python3.6/test//test_math.py
# Python test set -- math module
# XXXX Should not do tests around zero only

from test.support import run_unittest, verbose, requires_IEEE_754
from test import support
import unittest
import math
import os
import platform
import struct
import sys
import sysconfig

eps = 1E-05
NAN = float('nan')
INF = float('inf')
NINF = float('-inf')
FLOAT_MAX = sys.float_info.max

# detect evidence of double-rounding: fsum is not always correctly
# rounded on machines that suffer from double rounding.
x, y = 1e16, 2.9999 # use temporary values to defeat peephole optimizer
HAVE_DOUBLE_ROUNDING = (x + y == 1e16 + 4)

# locate file with test values
if __name__ == '__main__':
    file = sys.argv[0]
else:
    file = __file__
test_dir = os.path.dirname(file) or os.curdir
math_testcases = os.path.join(test_dir, 'math_testcases.txt')
test_file = os.path.join(test_dir, 'cmath_testcases.txt')


def to_ulps(x):
    """Convert a non-NaN float x to an integer, in such a way that
    adjacent floats are converted to adjacent integers.  Then
    abs(ulps(x) - ulps(y)) gives the difference in ulps between two
    floats.

    The results from this function will only make sense on platforms
    where native doubles are represented in IEEE 754 binary64 format.

    Note: 0.0 and -0.0 are converted to 0 and -1, respectively.
    """
    n = struct.unpack('<q', struct.pack('<d', x))[0]
    if n < 0:
        n = ~(n+2**63)
    return n


def ulp(x):
    """Return the value of the least significant bit of a
    float x, such that the first float bigger than x is x+ulp(x).
    Then, given an expected result x and a tolerance of n ulps,
    the result y should be such that abs(y-x) <= n * ulp(x).
    The results from this function will only make sense on platforms
    where native doubles are represented in IEEE 754 binary64 format.
    """
    x = abs(float(x))
    if math.isnan(x) or math.isinf(x):
        return x

    # Find next float up from x.
    n = struct.unpack('<q', struct.pack('<d', x))[0]
    x_next = struct.unpack('<d', struct.pack('<q', n + 1))[0]
    if math.isinf(x_next):
        # Corner case: x was the largest finite float. Then it's
        # not an exact power of two, so we can take the difference
        # between x and the previous float.
        x_prev = struct.unpack('<d', struct.pack('<q', n - 1))[0]
        return x - x_prev
    else:
        return x_next - x

# Here's a pure Python version of the math.factorial algorithm, for
# documentation and comparison purposes.
#
# Formula:
#
#   factorial(n) = factorial_odd_part(n) << (n - count_set_bits(n))
#
# where
#
#   factorial_odd_part(n) = product_{i >= 0} product_{0 < j <= n >> i; j odd} j
#
# The outer product above is an infinite product, but once i >= n.bit_length,
# (n >> i) < 1 and the corresponding term of the product is empty.  So only the
# finitely many terms for 0 <= i < n.bit_length() contribute anything.
#
# We iterate downwards from i == n.bit_length() - 1 to i == 0.  The inner
# product in the formula above starts at 1 for i == n.bit_length(); for each i
# < n.bit_length() we get the inner product for i from that for i + 1 by
# multiplying by all j in {n >> i+1 < j <= n >> i; j odd}.  In Python terms,
# this set is range((n >> i+1) + 1 | 1, (n >> i) + 1 | 1, 2).

def count_set_bits(n):
    """Number of '1' bits in binary expansion of a nonnnegative integer."""
    return 1 + count_set_bits(n & n - 1) if n else 0

def partial_product(start, stop):
    """Product of integers in range(start, stop, 2), computed recursively.
    start and stop should both be odd, with start <= stop.

    """
    numfactors = (stop - start) >> 1
    if not numfactors:
        return 1
    elif numfactors == 1:
        return start
    else:
        mid = (start + numfactors) | 1
        return partial_product(start, mid) * partial_product(mid, stop)

def py_factorial(n):
    """Factorial of nonnegative integer n, via "Binary Split Factorial Formula"
    described at http://www.luschny.de/math/factorial/binarysplitfact.html

    """
    inner = outer = 1
    for i in reversed(range(n.bit_length())):
        inner *= partial_product((n >> i + 1) + 1 | 1, (n >> i) + 1 | 1)
        outer *= inner
    return outer << (n - count_set_bits(n))

def ulp_abs_check(expected, got, ulp_tol, abs_tol):
    """Given finite floats `expected` and `got`, check that they're
    approximately equal to within the given number of ulps or the
    given absolute tolerance, whichever is bigger.

    Returns None on success and an error message on failure.
    """
    ulp_error = abs(to_ulps(expected) - to_ulps(got))
    abs_error = abs(expected - got)

    # Succeed if either abs_error <= abs_tol or ulp_error <= ulp_tol.
    if abs_error <= abs_tol or ulp_error <= ulp_tol:
        return None
    else:
        fmt = ("error = {:.3g} ({:d} ulps); "
               "permitted error = {:.3g} or {:d} ulps")
        return fmt.format(abs_error, ulp_error, abs_tol, ulp_tol)

def parse_mtestfile(fname):
    """Parse a file with test values

    -- starts a comment
    blank lines, or lines containing only a comment, are ignored
    other lines are expected to have the form
      id fn arg -> expected [flag]*

    """
    with open(fname) as fp:
        for line in fp:
            # strip comments, and skip blank lines
            if '--' in line:
                line = line[:line.index('--')]
            if not line.strip():
                continue

            lhs, rhs = line.split('->')
            id, fn, arg = lhs.split()
            rhs_pieces = rhs.split()
            exp = rhs_pieces[0]
            flags = rhs_pieces[1:]

            yield (id, fn, float(arg), float(exp), flags)


def parse_testfile(fname):
    """Parse a file with test values

    Empty lines or lines starting with -- are ignored
    yields id, fn, arg_real, arg_imag, exp_real, exp_imag
    """
    with open(fname) as fp:
        for line in fp:
            # skip comment lines and blank lines
            if line.startswith('--') or not line.strip():
                continue

            lhs, rhs = line.split('->')
            id, fn, arg_real, arg_imag = lhs.split()
            rhs_pieces = rhs.split()
            exp_real, exp_imag = rhs_pieces[0], rhs_pieces[1]
            flags = rhs_pieces[2:]

            yield (id, fn,
                   float(arg_real), float(arg_imag),
                   float(exp_real), float(exp_imag),
                   flags)


def result_check(expected, got, ulp_tol=5, abs_tol=0.0):
    # Common logic of MathTests.(ftest, test_testcases, test_mtestcases)
    """Compare arguments expected and got, as floats, if either
    is a float, using a tolerance expressed in multiples of
    ulp(expected) or absolutely (if given and greater).

    As a convenience, when neither argument is a float, and for
    non-finite floats, exact equality is demanded. Also, nan==nan
    as far as this function is concerned.

    Returns None on success and an error message on failure.
    """

    # Check exactly equal (applies also to strings representing exceptions)
    if got == expected:
        return None

    failure = "not equal"

    # Turn mixed float and int comparison (e.g. floor()) to all-float
    if isinstance(expected, float) and isinstance(got, int):
        got = float(got)
    elif isinstance(got, float) and isinstance(expected, int):
        expected = float(expected)

    if isinstance(expected, float) and isinstance(got, float):
        if math.isnan(expected) and math.isnan(got):
            # Pass, since both nan
            failure = None
        elif math.isinf(expected) or math.isinf(got):
            # We already know they're not equal, drop through to failure
            pass
        else:
            # Both are finite floats (now). Are they close enough?
            failure = ulp_abs_check(expected, got, ulp_tol, abs_tol)

    # arguments are not equal, and if numeric, are too far apart
    if failure is not None:
        fail_fmt = "expected {!r}, got {!r}"
        fail_msg = fail_fmt.format(expected, got)
        fail_msg += ' ({})'.format(failure)
        return fail_msg
    else:
        return None

# Class providing an __index__ method.
class MyIndexable(object):
    def __init__(self, value):
        self.value = value

    def __index__(self):
        return self.value

class MathTests(unittest.TestCase):

    def ftest(self, name, got, expected, ulp_tol=5, abs_tol=0.0):
        """Compare arguments expected and got, as floats, if either
        is a float, using a tolerance expressed in multiples of
        ulp(expected) or absolutely, whichever is greater.

        As a convenience, when neither argument is a float, and for
        non-finite floats, exact equality is demanded. Also, nan==nan
        in this function.
        """
        failure = result_check(expected, got, ulp_tol, abs_tol)
        if failure is not None:
            self.fail("{}: {}".format(name, failure))

    def testConstants(self):
        # Ref: Abramowitz & Stegun (Dover, 1965)
        self.ftest('pi', math.pi, 3.141592653589793238462643)
        self.ftest('e', math.e, 2.718281828459045235360287)
        self.assertEqual(math.tau, 2*math.pi)

    def testAcos(self):
        self.assertRaises(TypeError, math.acos)
        self.ftest('acos(-1)', math.acos(-1), math.pi)
        self.ftest('acos(0)', math.acos(0), math.pi/2)
        self.ftest('acos(1)', math.acos(1), 0)
        self.assertRaises(ValueError, math.acos, INF)
        self.assertRaises(ValueError, math.acos, NINF)
        self.assertRaises(ValueError, math.acos, 1 + eps)
        self.assertRaises(ValueError, math.acos, -1 - eps)
        self.assertTrue(math.isnan(math.acos(NAN)))

    def testAcosh(self):
        self.assertRaises(TypeError, math.acosh)
        self.ftest('acosh(1)', math.acosh(1), 0)
        self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168)
        self.assertRaises(ValueError, math.acosh, 0)
        self.assertRaises(ValueError, math.acosh, -1)
        self.assertEqual(math.acosh(INF), INF)
        self.assertRaises(ValueError, math.acosh, NINF)
        self.assertTrue(math.isnan(math.acosh(NAN)))

    def testAsin(self):
        self.assertRaises(TypeError, math.asin)
        self.ftest('asin(-1)', math.asin(-1), -math.pi/2)
        self.ftest('asin(0)', math.asin(0), 0)
        self.ftest('asin(1)', math.asin(1), math.pi/2)
        self.assertRaises(ValueError, math.asin, INF)
        self.assertRaises(ValueError, math.asin, NINF)
        self.assertRaises(ValueError, math.asin, 1 + eps)
        self.assertRaises(ValueError, math.asin, -1 - eps)
        self.assertTrue(math.isnan(math.asin(NAN)))

    def testAsinh(self):
        self.assertRaises(TypeError, math.asinh)
        self.ftest('asinh(0)', math.asinh(0), 0)
        self.ftest('asinh(1)', math.asinh(1), 0.88137358701954305)
        self.ftest('asinh(-1)', math.asinh(-1), -0.88137358701954305)
        self.assertEqual(math.asinh(INF), INF)
        self.assertEqual(math.asinh(NINF), NINF)
        self.assertTrue(math.isnan(math.asinh(NAN)))

    def testAtan(self):
        self.assertRaises(TypeError, math.atan)
        self.ftest('atan(-1)', math.atan(-1), -math.pi/4)
        self.ftest('atan(0)', math.atan(0), 0)
        self.ftest('atan(1)', math.atan(1), math.pi/4)
        self.ftest('atan(inf)', math.atan(INF), math.pi/2)
        self.ftest('atan(-inf)', math.atan(NINF), -math.pi/2)
        self.assertTrue(math.isnan(math.atan(NAN)))

    def testAtanh(self):
        self.assertRaises(TypeError, math.atan)
        self.ftest('atanh(0)', math.atanh(0), 0)
        self.ftest('atanh(0.5)', math.atanh(0.5), 0.54930614433405489)
        self.ftest('atanh(-0.5)', math.atanh(-0.5), -0.54930614433405489)
        self.assertRaises(ValueError, math.atanh, 1)
        self.assertRaises(ValueError, math.atanh, -1)
        self.assertRaises(ValueError, math.atanh, INF)
        self.assertRaises(ValueError, math.atanh, NINF)
        self.assertTrue(math.isnan(math.atanh(NAN)))

    def testAtan2(self):
        self.assertRaises(TypeError, math.atan2)
        self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2)
        self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4)
        self.ftest('atan2(0, 1)', math.atan2(0, 1), 0)
        self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4)
        self.ftest('atan2(1, 0)', math.atan2(1, 0), math.pi/2)

        # math.atan2(0, x)
        self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi)
        self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi)
        self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi)
        self.assertEqual(math.atan2(0., 0.), 0.)
        self.assertEqual(math.atan2(0., 2.3), 0.)
        self.assertEqual(math.atan2(0., INF), 0.)
        self.assertTrue(math.isnan(math.atan2(0., NAN)))
        # math.atan2(-0, x)
        self.ftest('atan2(-0., -inf)', math.atan2(-0., NINF), -math.pi)
        self.ftest('atan2(-0., -2.3)', math.atan2(-0., -2.3), -math.pi)
        self.ftest('atan2(-0., -0.)', math.atan2(-0., -0.), -math.pi)
        self.assertEqual(math.atan2(-0., 0.), -0.)
        self.assertEqual(math.atan2(-0., 2.3), -0.)
        self.assertEqual(math.atan2(-0., INF), -0.)
        self.assertTrue(math.isnan(math.atan2(-0., NAN)))
        # math.atan2(INF, x)
        self.ftest('atan2(inf, -inf)', math.atan2(INF, NINF), math.pi*3/4)
        self.ftest('atan2(inf, -2.3)', math.atan2(INF, -2.3), math.pi/2)
        self.ftest('atan2(inf, -0.)', math.atan2(INF, -0.0), math.pi/2)
        self.ftest('atan2(inf, 0.)', math.atan2(INF, 0.0), math.pi/2)
        self.ftest('atan2(inf, 2.3)', math.atan2(INF, 2.3), math.pi/2)
        self.ftest('atan2(inf, inf)', math.atan2(INF, INF), math.pi/4)
        self.assertTrue(math.isnan(math.atan2(INF, NAN)))
        # math.atan2(NINF, x)
        self.ftest('atan2(-inf, -inf)', math.atan2(NINF, NINF), -math.pi*3/4)
        self.ftest('atan2(-inf, -2.3)', math.atan2(NINF, -2.3), -math.pi/2)
        self.ftest('atan2(-inf, -0.)', math.atan2(NINF, -0.0), -math.pi/2)
        self.ftest('atan2(-inf, 0.)', math.atan2(NINF, 0.0), -math.pi/2)
        self.ftest('atan2(-inf, 2.3)', math.atan2(NINF, 2.3), -math.pi/2)
        self.ftest('atan2(-inf, inf)', math.atan2(NINF, INF), -math.pi/4)
        self.assertTrue(math.isnan(math.atan2(NINF, NAN)))
        # math.atan2(+finite, x)
        self.ftest('atan2(2.3, -inf)', math.atan2(2.3, NINF), math.pi)
        self.ftest('atan2(2.3, -0.)', math.atan2(2.3, -0.), math.pi/2)
        self.ftest('atan2(2.3, 0.)', math.atan2(2.3, 0.), math.pi/2)
        self.assertEqual(math.atan2(2.3, INF), 0.)
        self.assertTrue(math.isnan(math.atan2(2.3, NAN)))
        # math.atan2(-finite, x)
        self.ftest('atan2(-2.3, -inf)', math.atan2(-2.3, NINF), -math.pi)
        self.ftest('atan2(-2.3, -0.)', math.atan2(-2.3, -0.), -math.pi/2)
        self.ftest('atan2(-2.3, 0.)', math.atan2(-2.3, 0.), -math.pi/2)
        self.assertEqual(math.atan2(-2.3, INF), -0.)
        self.assertTrue(math.isnan(math.atan2(-2.3, NAN)))
        # math.atan2(NAN, x)
        self.assertTrue(math.isnan(math.atan2(NAN, NINF)))
        self.assertTrue(math.isnan(math.atan2(NAN, -2.3)))
        self.assertTrue(math.isnan(math.atan2(NAN, -0.)))
        self.assertTrue(math.isnan(math.atan2(NAN, 0.)))
        self.assertTrue(math.isnan(math.atan2(NAN, 2.3)))
        self.assertTrue(math.isnan(math.atan2(NAN, INF)))
        self.assertTrue(math.isnan(math.atan2(NAN, NAN)))

    def testCeil(self):
        self.assertRaises(TypeError, math.ceil)
        self.assertEqual(int, type(math.ceil(0.5)))
        self.ftest('ceil(0.5)', math.ceil(0.5), 1)
        self.ftest('ceil(1.0)', math.ceil(1.0), 1)
        self.ftest('ceil(1.5)', math.ceil(1.5), 2)
        self.ftest('ceil(-0.5)', math.ceil(-0.5), 0)
        self.ftest('ceil(-1.0)', math.ceil(-1.0), -1)
        self.ftest('ceil(-1.5)', math.ceil(-1.5), -1)
        #self.assertEqual(math.ceil(INF), INF)
        #self.assertEqual(math.ceil(NINF), NINF)
        #self.assertTrue(math.isnan(math.ceil(NAN)))

        class TestCeil:
            def __ceil__(self):
                return 42
        class TestNoCeil:
            pass
        self.ftest('ceil(TestCeil())', math.ceil(TestCeil()), 42)
        self.assertRaises(TypeError, math.ceil, TestNoCeil())

        t = TestNoCeil()
        t.__ceil__ = lambda *args: args
        self.assertRaises(TypeError, math.ceil, t)
        self.assertRaises(TypeError, math.ceil, t, 0)

    @requires_IEEE_754
    def testCopysign(self):
        self.assertEqual(math.copysign(1, 42), 1.0)
        self.assertEqual(math.copysign(0., 42), 0.0)
        self.assertEqual(math.copysign(1., -42), -1.0)
        self.assertEqual(math.copysign(3, 0.), 3.0)
        self.assertEqual(math.copysign(4., -0.), -4.0)

        self.assertRaises(TypeError, math.copysign)
        # copysign should let us distinguish signs of zeros
        self.assertEqual(math.copysign(1., 0.), 1.)
        self.assertEqual(math.copysign(1., -0.), -1.)
        self.assertEqual(math.copysign(INF, 0.), INF)
        self.assertEqual(math.copysign(INF, -0.), NINF)
        self.assertEqual(math.copysign(NINF, 0.), INF)
        self.assertEqual(math.copysign(NINF, -0.), NINF)
        # and of infinities
        self.assertEqual(math.copysign(1., INF), 1.)
        self.assertEqual(math.copysign(1., NINF), -1.)
        self.assertEqual(math.copysign(INF, INF), INF)
        self.assertEqual(math.copysign(INF, NINF), NINF)
        self.assertEqual(math.copysign(NINF, INF), INF)
        self.assertEqual(math.copysign(NINF, NINF), NINF)
        self.assertTrue(math.isnan(math.copysign(NAN, 1.)))
        self.assertTrue(math.isnan(math.copysign(NAN, INF)))
        self.assertTrue(math.isnan(math.copysign(NAN, NINF)))
        self.assertTrue(math.isnan(math.copysign(NAN, NAN)))
        # copysign(INF, NAN) may be INF or it may be NINF, since
        # we don't know whether the sign bit of NAN is set on any
        # given platform.
        self.assertTrue(math.isinf(math.copysign(INF, NAN)))
        # similarly, copysign(2., NAN) could be 2. or -2.
        self.assertEqual(abs(math.copysign(2., NAN)), 2.)

    def testCos(self):
        self.assertRaises(TypeError, math.cos)
        self.ftest('cos(-pi/2)', math.cos(-math.pi/2), 0, abs_tol=ulp(1))
        self.ftest('cos(0)', math.cos(0), 1)
        self.ftest('cos(pi/2)', math.cos(math.pi/2), 0, abs_tol=ulp(1))
        self.ftest('cos(pi)', math.cos(math.pi), -1)
        try:
            self.assertTrue(math.isnan(math.cos(INF)))
            self.assertTrue(math.isnan(math.cos(NINF)))
        except ValueError:
            self.assertRaises(ValueError, math.cos, INF)
            self.assertRaises(ValueError, math.cos, NINF)
        self.assertTrue(math.isnan(math.cos(NAN)))

    def testCosh(self):
        self.assertRaises(TypeError, math.cosh)
        self.ftest('cosh(0)', math.cosh(0), 1)
        self.ftest('cosh(2)-2*cosh(1)**2', math.cosh(2)-2*math.cosh(1)**2, -1) # Thanks to Lambert
        self.assertEqual(math.cosh(INF), INF)
        self.assertEqual(math.cosh(NINF), INF)
        self.assertTrue(math.isnan(math.cosh(NAN)))

    def testDegrees(self):
        self.assertRaises(TypeError, math.degrees)
        self.ftest('degrees(pi)', math.degrees(math.pi), 180.0)
        self.ftest('degrees(pi/2)', math.degrees(math.pi/2), 90.0)
        self.ftest('degrees(-pi/4)', math.degrees(-math.pi/4), -45.0)
        self.ftest('degrees(0)', math.degrees(0), 0)

    def testExp(self):
        self.assertRaises(TypeError, math.exp)
        self.ftest('exp(-1)', math.exp(-1), 1/math.e)
        self.ftest('exp(0)', math.exp(0), 1)
        self.ftest('exp(1)', math.exp(1), math.e)
        self.assertEqual(math.exp(INF), INF)
        self.assertEqual(math.exp(NINF), 0.)
        self.assertTrue(math.isnan(math.exp(NAN)))
        self.assertRaises(OverflowError, math.exp, 1000000)

    def testFabs(self):
        self.assertRaises(TypeError, math.fabs)
        self.ftest('fabs(-1)', math.fabs(-1), 1)
        self.ftest('fabs(0)', math.fabs(0), 0)
        self.ftest('fabs(1)', math.fabs(1), 1)

    def testFactorial(self):
        self.assertEqual(math.factorial(0), 1)
        self.assertEqual(math.factorial(0.0), 1)
        total = 1
        for i in range(1, 1000):
            total *= i
            self.assertEqual(math.factorial(i), total)
            self.assertEqual(math.factorial(float(i)), total)
            self.assertEqual(math.factorial(i), py_factorial(i))
        self.assertRaises(ValueError, math.factorial, -1)
        self.assertRaises(ValueError, math.factorial, -1.0)
        self.assertRaises(ValueError, math.factorial, -10**100)
        self.assertRaises(ValueError, math.factorial, -1e100)
        self.assertRaises(ValueError, math.factorial, math.pi)

    # Other implementations may place different upper bounds.
    @support.cpython_only
    def testFactorialHugeInputs(self):
        # Currently raises ValueError for inputs that are too large
        # to fit into a C long.
        self.assertRaises(OverflowError, math.factorial, 10**100)
        self.assertRaises(OverflowError, math.factorial, 1e100)

    def testFloor(self):
        self.assertRaises(TypeError, math.floor)
        self.assertEqual(int, type(math.floor(0.5)))
        self.ftest('floor(0.5)', math.floor(0.5), 0)
        self.ftest('floor(1.0)', math.floor(1.0), 1)
        self.ftest('floor(1.5)', math.floor(1.5), 1)
        self.ftest('floor(-0.5)', math.floor(-0.5), -1)
        self.ftest('floor(-1.0)', math.floor(-1.0), -1)
        self.ftest('floor(-1.5)', math.floor(-1.5), -2)
        # pow() relies on floor() to check for integers
        # This fails on some platforms - so check it here
        self.ftest('floor(1.23e167)', math.floor(1.23e167), 1.23e167)
        self.ftest('floor(-1.23e167)', math.floor(-1.23e167), -1.23e167)
        #self.assertEqual(math.ceil(INF), INF)
        #self.assertEqual(math.ceil(NINF), NINF)
        #self.assertTrue(math.isnan(math.floor(NAN)))

        class TestFloor:
            def __floor__(self):
                return 42
        class TestNoFloor:
            pass
        self.ftest('floor(TestFloor())', math.floor(TestFloor()), 42)
        self.assertRaises(TypeError, math.floor, TestNoFloor())

        t = TestNoFloor()
        t.__floor__ = lambda *args: args
        self.assertRaises(TypeError, math.floor, t)
        self.assertRaises(TypeError, math.floor, t, 0)

    def testFmod(self):
        self.assertRaises(TypeError, math.fmod)
        self.ftest('fmod(10, 1)', math.fmod(10, 1), 0.0)
        self.ftest('fmod(10, 0.5)', math.fmod(10, 0.5), 0.0)
        self.ftest('fmod(10, 1.5)', math.fmod(10, 1.5), 1.0)
        self.ftest('fmod(-10, 1)', math.fmod(-10, 1), -0.0)
        self.ftest('fmod(-10, 0.5)', math.fmod(-10, 0.5), -0.0)
        self.ftest('fmod(-10, 1.5)', math.fmod(-10, 1.5), -1.0)
        self.assertTrue(math.isnan(math.fmod(NAN, 1.)))
        self.assertTrue(math.isnan(math.fmod(1., NAN)))
        self.assertTrue(math.isnan(math.fmod(NAN, NAN)))
        self.assertRaises(ValueError, math.fmod, 1., 0.)
        self.assertRaises(ValueError, math.fmod, INF, 1.)
        self.assertRaises(ValueError, math.fmod, NINF, 1.)
        self.assertRaises(ValueError, math.fmod, INF, 0.)
        self.assertEqual(math.fmod(3.0, INF), 3.0)
        self.assertEqual(math.fmod(-3.0, INF), -3.0)
        self.assertEqual(math.fmod(3.0, NINF), 3.0)
        self.assertEqual(math.fmod(-3.0, NINF), -3.0)
        self.assertEqual(math.fmod(0.0, 3.0), 0.0)
        self.assertEqual(math.fmod(0.0, NINF), 0.0)

    def testFrexp(self):
        self.assertRaises(TypeError, math.frexp)

        def testfrexp(name, result, expected):
            (mant, exp), (emant, eexp) = result, expected
            if abs(mant-emant) > eps or exp != eexp:
                self.fail('%s returned %r, expected %r'%\
                          (name, result, expected))

        testfrexp('frexp(-1)', math.frexp(-1), (-0.5, 1))
        testfrexp('frexp(0)', math.frexp(0), (0, 0))
        testfrexp('frexp(1)', math.frexp(1), (0.5, 1))
        testfrexp('frexp(2)', math.frexp(2), (0.5, 2))

        self.assertEqual(math.frexp(INF)[0], INF)
        self.assertEqual(math.frexp(NINF)[0], NINF)
        self.assertTrue(math.isnan(math.frexp(NAN)[0]))

    @requires_IEEE_754
    @unittest.skipIf(HAVE_DOUBLE_ROUNDING,
                         "fsum is not exact on machines with double rounding")
    def testFsum(self):
        # math.fsum relies on exact rounding for correct operation.
        # There's a known problem with IA32 floating-point that causes
        # inexact rounding in some situations, and will cause the
        # math.fsum tests below to fail; see issue #2937.  On non IEEE
        # 754 platforms, and on IEEE 754 platforms that exhibit the
        # problem described in issue #2937, we simply skip the whole
        # test.

        # Python version of math.fsum, for comparison.  Uses a
        # different algorithm based on frexp, ldexp and integer
        # arithmetic.
        from sys import float_info
        mant_dig = float_info.mant_dig
        etiny = float_info.min_exp - mant_dig

        def msum(iterable):
            """Full precision summation.  Compute sum(iterable) without any
            intermediate accumulation of error.  Based on the 'lsum' function
            at http://code.activestate.com/recipes/393090/

            """
            tmant, texp = 0, 0
            for x in iterable:
                mant, exp = math.frexp(x)
                mant, exp = int(math.ldexp(mant, mant_dig)), exp - mant_dig
                if texp > exp:
                    tmant <<= texp-exp
                    texp = exp
                else:
                    mant <<= exp-texp
                tmant += mant
            # Round tmant * 2**texp to a float.  The original recipe
            # used float(str(tmant)) * 2.0**texp for this, but that's
            # a little unsafe because str -> float conversion can't be
            # relied upon to do correct rounding on all platforms.
            tail = max(len(bin(abs(tmant)))-2 - mant_dig, etiny - texp)
            if tail > 0:
                h = 1 << (tail-1)
                tmant = tmant // (2*h) + bool(tmant & h and tmant & 3*h-1)
                texp += tail
            return math.ldexp(tmant, texp)

        test_values = [
            ([], 0.0),
            ([0.0], 0.0),
            ([1e100, 1.0, -1e100, 1e-100, 1e50, -1.0, -1e50], 1e-100),
            ([2.0**53, -0.5, -2.0**-54], 2.0**53-1.0),
            ([2.0**53, 1.0, 2.0**-100], 2.0**53+2.0),
            ([2.0**53+10.0, 1.0, 2.0**-100], 2.0**53+12.0),
            ([2.0**53-4.0, 0.5, 2.0**-54], 2.0**53-3.0),
            ([1./n for n in range(1, 1001)],
             float.fromhex('0x1.df11f45f4e61ap+2')),
            ([(-1.)**n/n for n in range(1, 1001)],
             float.fromhex('-0x1.62a2af1bd3624p-1')),
            ([1.7**(i+1)-1.7**i for i in range(1000)] + [-1.7**1000], -1.0),
            ([1e16, 1., 1e-16], 10000000000000002.0),
            ([1e16-2., 1.-2.**-53, -(1e16-2.), -(1.-2.**-53)], 0.0),
            # exercise code for resizing partials array
            ([2.**n - 2.**(n+50) + 2.**(n+52) for n in range(-1074, 972, 2)] +
             [-2.**1022],
             float.fromhex('0x1.5555555555555p+970')),
            ]

        for i, (vals, expected) in enumerate(test_values):
            try:
                actual = math.fsum(vals)
            except OverflowError:
                self.fail("test %d failed: got OverflowError, expected %r "
                          "for math.fsum(%.100r)" % (i, expected, vals))
            except ValueError:
                self.fail("test %d failed: got ValueError, expected %r "
                          "for math.fsum(%.100r)" % (i, expected, vals))
            self.assertEqual(actual, expected)

        from random import random, gauss, shuffle
        for j in range(1000):
            vals = [7, 1e100, -7, -1e100, -9e-20, 8e-20] * 10
            s = 0
            for i in range(200):
                v = gauss(0, random()) ** 7 - s
                s += v
                vals.append(v)
            shuffle(vals)

            s = msum(vals)
            self.assertEqual(msum(vals), math.fsum(vals))

    def testGcd(self):
        gcd = math.gcd
        self.assertEqual(gcd(0, 0), 0)
        self.assertEqual(gcd(1, 0), 1)
        self.assertEqual(gcd(-1, 0), 1)
        self.assertEqual(gcd(0, 1), 1)
        self.assertEqual(gcd(0, -1), 1)
        self.assertEqual(gcd(7, 1), 1)
        self.assertEqual(gcd(7, -1), 1)
        self.assertEqual(gcd(-23, 15), 1)
        self.assertEqual(gcd(120, 84), 12)
        self.assertEqual(gcd(84, -120), 12)
        self.assertEqual(gcd(1216342683557601535506311712,
                             436522681849110124616458784), 32)
        c = 652560
        x = 434610456570399902378880679233098819019853229470286994367836600566
        y = 1064502245825115327754847244914921553977
        a = x * c
        b = y * c
        self.assertEqual(gcd(a, b), c)
        self.assertEqual(gcd(b, a), c)
        self.assertEqual(gcd(-a, b), c)
        self.assertEqual(gcd(b, -a), c)
        self.assertEqual(gcd(a, -b), c)
        self.assertEqual(gcd(-b, a), c)
        self.assertEqual(gcd(-a, -b), c)
        self.assertEqual(gcd(-b, -a), c)
        c = 576559230871654959816130551884856912003141446781646602790216406874
        a = x * c
        b = y * c
        self.assertEqual(gcd(a, b), c)
        self.assertEqual(gcd(b, a), c)
        self.assertEqual(gcd(-a, b), c)
        self.assertEqual(gcd(b, -a), c)
        self.assertEqual(gcd(a, -b), c)
        self.assertEqual(gcd(-b, a), c)
        self.assertEqual(gcd(-a, -b), c)
        self.assertEqual(gcd(-b, -a), c)

        self.assertRaises(TypeError, gcd, 120.0, 84)
        self.assertRaises(TypeError, gcd, 120, 84.0)
        self.assertEqual(gcd(MyIndexable(120), MyIndexable(84)), 12)

    def testHypot(self):
        self.assertRaises(TypeError, math.hypot)
        self.ftest('hypot(0,0)', math.hypot(0,0), 0)
        self.ftest('hypot(3,4)', math.hypot(3,4), 5)
        self.assertEqual(math.hypot(NAN, INF), INF)
        self.assertEqual(math.hypot(INF, NAN), INF)
        self.assertEqual(math.hypot(NAN, NINF), INF)
        self.assertEqual(math.hypot(NINF, NAN), INF)
        self.assertRaises(OverflowError, math.hypot, FLOAT_MAX, FLOAT_MAX)
        self.assertTrue(math.isnan(math.hypot(1.0, NAN)))
        self.assertTrue(math.isnan(math.hypot(NAN, -2.0)))

    def testLdexp(self):
        self.assertRaises(TypeError, math.ldexp)
        self.ftest('ldexp(0,1)', math.ldexp(0,1), 0)
        self.ftest('ldexp(1,1)', math.ldexp(1,1), 2)
        self.ftest('ldexp(1,-1)', math.ldexp(1,-1), 0.5)
        self.ftest('ldexp(-1,1)', math.ldexp(-1,1), -2)
        self.assertRaises(OverflowError, math.ldexp, 1., 1000000)
        self.assertRaises(OverflowError, math.ldexp, -1., 1000000)
        self.assertEqual(math.ldexp(1., -1000000), 0.)
        self.assertEqual(math.ldexp(-1., -1000000), -0.)
        self.assertEqual(math.ldexp(INF, 30), INF)
        self.assertEqual(math.ldexp(NINF, -213), NINF)
        self.assertTrue(math.isnan(math.ldexp(NAN, 0)))

        # large second argument
        for n in [10**5, 10**10, 10**20, 10**40]:
            self.assertEqual(math.ldexp(INF, -n), INF)
            self.assertEqual(math.ldexp(NINF, -n), NINF)
            self.assertEqual(math.ldexp(1., -n), 0.)
            self.assertEqual(math.ldexp(-1., -n), -0.)
            self.assertEqual(math.ldexp(0., -n), 0.)
            self.assertEqual(math.ldexp(-0., -n), -0.)
            self.assertTrue(math.isnan(math.ldexp(NAN, -n)))

            self.assertRaises(OverflowError, math.ldexp, 1., n)
            self.assertRaises(OverflowError, math.ldexp, -1., n)
            self.assertEqual(math.ldexp(0., n), 0.)
            self.assertEqual(math.ldexp(-0., n), -0.)
            self.assertEqual(math.ldexp(INF, n), INF)
            self.assertEqual(math.ldexp(NINF, n), NINF)
            self.assertTrue(math.isnan(math.ldexp(NAN, n)))

    def testLog(self):
        self.assertRaises(TypeError, math.log)
        self.ftest('log(1/e)', math.log(1/math.e), -1)
        self.ftest('log(1)', math.log(1), 0)
        self.ftest('log(e)', math.log(math.e), 1)
        self.ftest('log(32,2)', math.log(32,2), 5)
        self.ftest('log(10**40, 10)', math.log(10**40, 10), 40)
        self.ftest('log(10**40, 10**20)', math.log(10**40, 10**20), 2)
        self.ftest('log(10**1000)', math.log(10**1000),
                   2302.5850929940457)
        self.assertRaises(ValueError, math.log, -1.5)
        self.assertRaises(ValueError, math.log, -10**1000)
        self.assertRaises(ValueError, math.log, NINF)
        self.assertEqual(math.log(INF), INF)
        self.assertTrue(math.isnan(math.log(NAN)))

    def testLog1p(self):
        self.assertRaises(TypeError, math.log1p)
        for n in [2, 2**90, 2**300]:
            self.assertAlmostEqual(math.log1p(n), math.log1p(float(n)))
        self.assertRaises(ValueError, math.log1p, -1)
        self.assertEqual(math.log1p(INF), INF)

    @requires_IEEE_754
    def testLog2(self):
        self.assertRaises(TypeError, math.log2)

        # Check some integer values
        self.assertEqual(math.log2(1), 0.0)
        self.assertEqual(math.log2(2), 1.0)
        self.assertEqual(math.log2(4), 2.0)

        # Large integer values
        self.assertEqual(math.log2(2**1023), 1023.0)
        self.assertEqual(math.log2(2**1024), 1024.0)
        self.assertEqual(math.log2(2**2000), 2000.0)

        self.assertRaises(ValueError, math.log2, -1.5)
        self.assertRaises(ValueError, math.log2, NINF)
        self.assertTrue(math.isnan(math.log2(NAN)))

    @requires_IEEE_754
    # log2() is not accurate enough on Mac OS X Tiger (10.4)
    @support.requires_mac_ver(10, 5)
    def testLog2Exact(self):
        # Check that we get exact equality for log2 of powers of 2.
        actual = [math.log2(math.ldexp(1.0, n)) for n in range(-1074, 1024)]
        expected = [float(n) for n in range(-1074, 1024)]
        self.assertEqual(actual, expected)

    def testLog10(self):
        self.assertRaises(TypeError, math.log10)
        self.ftest('log10(0.1)', math.log10(0.1), -1)
        self.ftest('log10(1)', math.log10(1), 0)
        self.ftest('log10(10)', math.log10(10), 1)
        self.ftest('log10(10**1000)', math.log10(10**1000), 1000.0)
        self.assertRaises(ValueError, math.log10, -1.5)
        self.assertRaises(ValueError, math.log10, -10**1000)
        self.assertRaises(ValueError, math.log10, NINF)
        self.assertEqual(math.log(INF), INF)
        self.assertTrue(math.isnan(math.log10(NAN)))

    def testModf(self):
        self.assertRaises(TypeError, math.modf)

        def testmodf(name, result, expected):
            (v1, v2), (e1, e2) = result, expected
            if abs(v1-e1) > eps or abs(v2-e2):
                self.fail('%s returned %r, expected %r'%\
                          (name, result, expected))

        testmodf('modf(1.5)', math.modf(1.5), (0.5, 1.0))
        testmodf('modf(-1.5)', math.modf(-1.5), (-0.5, -1.0))

        self.assertEqual(math.modf(INF), (0.0, INF))
        self.assertEqual(math.modf(NINF), (-0.0, NINF))

        modf_nan = math.modf(NAN)
        self.assertTrue(math.isnan(modf_nan[0]))
        self.assertTrue(math.isnan(modf_nan[1]))

    def testPow(self):
        self.assertRaises(TypeError, math.pow)
        self.ftest('pow(0,1)', math.pow(0,1), 0)
        self.ftest('pow(1,0)', math.pow(1,0), 1)
        self.ftest('pow(2,1)', math.pow(2,1), 2)
        self.ftest('pow(2,-1)', math.pow(2,-1), 0.5)
        self.assertEqual(math.pow(INF, 1), INF)
        self.assertEqual(math.pow(NINF, 1), NINF)
        self.assertEqual((math.pow(1, INF)), 1.)
        self.assertEqual((math.pow(1, NINF)), 1.)
        self.assertTrue(math.isnan(math.pow(NAN, 1)))
        self.assertTrue(math.isnan(math.pow(2, NAN)))
        self.assertTrue(math.isnan(math.pow(0, NAN)))
        self.assertEqual(math.pow(1, NAN), 1)

        # pow(0., x)
        self.assertEqual(math.pow(0., INF), 0.)
        self.assertEqual(math.pow(0., 3.), 0.)
        self.assertEqual(math.pow(0., 2.3), 0.)
        self.assertEqual(math.pow(0., 2.), 0.)
        self.assertEqual(math.pow(0., 0.), 1.)
        self.assertEqual(math.pow(0., -0.), 1.)
        self.assertRaises(ValueError, math.pow, 0., -2.)
        self.assertRaises(ValueError, math.pow, 0., -2.3)
        self.assertRaises(ValueError, math.pow, 0., -3.)
        self.assertRaises(ValueError, math.pow, 0., NINF)
        self.assertTrue(math.isnan(math.pow(0., NAN)))

        # pow(INF, x)
        self.assertEqual(math.pow(INF, INF), INF)
        self.assertEqual(math.pow(INF, 3.), INF)
        self.assertEqual(math.pow(INF, 2.3), INF)
        self.assertEqual(math.pow(INF, 2.), INF)
        self.assertEqual(math.pow(INF, 0.), 1.)
        self.assertEqual(math.pow(INF, -0.), 1.)
        self.assertEqual(math.pow(INF, -2.), 0.)
        self.assertEqual(math.pow(INF, -2.3), 0.)
        self.assertEqual(math.pow(INF, -3.), 0.)
        self.assertEqual(math.pow(INF, NINF), 0.)
        self.assertTrue(math.isnan(math.pow(INF, NAN)))

        # pow(-0., x)
        self.assertEqual(math.pow(-0., INF), 0.)
        self.assertEqual(math.pow(-0., 3.), -0.)
        self.assertEqual(math.pow(-0., 2.3), 0.)
        self.assertEqual(math.pow(-0., 2.), 0.)
        self.assertEqual(math.pow(-0., 0.), 1.)
        self.assertEqual(math.pow(-0., -0.), 1.)
        self.assertRaises(ValueError, math.pow, -0., -2.)
        self.assertRaises(ValueError, math.pow, -0., -2.3)
        self.assertRaises(ValueError, math.pow, -0., -3.)
        self.assertRaises(ValueError, math.pow, -0., NINF)
        self.assertTrue(math.isnan(math.pow(-0., NAN)))

        # pow(NINF, x)
        self.assertEqual(math.pow(NINF, INF), INF)
        self.assertEqual(math.pow(NINF, 3.), NINF)
        self.assertEqual(math.pow(NINF, 2.3), INF)
        self.assertEqual(math.pow(NINF, 2.), INF)
        self.assertEqual(math.pow(NINF, 0.), 1.)
        self.assertEqual(math.pow(NINF, -0.), 1.)
        self.assertEqual(math.pow(NINF, -2.), 0.)
        self.assertEqual(math.pow(NINF, -2.3), 0.)
        self.assertEqual(math.pow(NINF, -3.), -0.)
        self.assertEqual(math.pow(NINF, NINF), 0.)
        self.assertTrue(math.isnan(math.pow(NINF, NAN)))

        # pow(-1, x)
        self.assertEqual(math.pow(-1., INF), 1.)
        self.assertEqual(math.pow(-1., 3.), -1.)
        self.assertRaises(ValueError, math.pow, -1., 2.3)
        self.assertEqual(math.pow(-1., 2.), 1.)
        self.assertEqual(math.pow(-1., 0.), 1.)
        self.assertEqual(math.pow(-1., -0.), 1.)
        self.assertEqual(math.pow(-1., -2.), 1.)
        self.assertRaises(ValueError, math.pow, -1., -2.3)
        self.assertEqual(math.pow(-1., -3.), -1.)
        self.assertEqual(math.pow(-1., NINF), 1.)
        self.assertTrue(math.isnan(math.pow(-1., NAN)))

        # pow(1, x)
        self.assertEqual(math.pow(1., INF), 1.)
        self.assertEqual(math.pow(1., 3.), 1.)
        self.assertEqual(math.pow(1., 2.3), 1.)
        self.assertEqual(math.pow(1., 2.), 1.)
        self.assertEqual(math.pow(1., 0.), 1.)
        self.assertEqual(math.pow(1., -0.), 1.)
        self.assertEqual(math.pow(1., -2.), 1.)
        self.assertEqual(math.pow(1., -2.3), 1.)
        self.assertEqual(math.pow(1., -3.), 1.)
        self.assertEqual(math.pow(1., NINF), 1.)
        self.assertEqual(math.pow(1., NAN), 1.)

        # pow(x, 0) should be 1 for any x
        self.assertEqual(math.pow(2.3, 0.), 1.)
        self.assertEqual(math.pow(-2.3, 0.), 1.)
        self.assertEqual(math.pow(NAN, 0.), 1.)
        self.assertEqual(math.pow(2.3, -0.), 1.)
        self.assertEqual(math.pow(-2.3, -0.), 1.)
        self.assertEqual(math.pow(NAN, -0.), 1.)

        # pow(x, y) is invalid if x is negative and y is not integral
        self.assertRaises(ValueError, math.pow, -1., 2.3)
        self.assertRaises(ValueError, math.pow, -15., -3.1)

        # pow(x, NINF)
        self.assertEqual(math.pow(1.9, NINF), 0.)
        self.assertEqual(math.pow(1.1, NINF), 0.)
        self.assertEqual(math.pow(0.9, NINF), INF)
        self.assertEqual(math.pow(0.1, NINF), INF)
        self.assertEqual(math.pow(-0.1, NINF), INF)
        self.assertEqual(math.pow(-0.9, NINF), INF)
        self.assertEqual(math.pow(-1.1, NINF), 0.)
        self.assertEqual(math.pow(-1.9, NINF), 0.)

        # pow(x, INF)
        self.assertEqual(math.pow(1.9, INF), INF)
        self.assertEqual(math.pow(1.1, INF), INF)
        self.assertEqual(math.pow(0.9, INF), 0.)
        self.assertEqual(math.pow(0.1, INF), 0.)
        self.assertEqual(math.pow(-0.1, INF), 0.)
        self.assertEqual(math.pow(-0.9, INF), 0.)
        self.assertEqual(math.pow(-1.1, INF), INF)
        self.assertEqual(math.pow(-1.9, INF), INF)

        # pow(x, y) should work for x negative, y an integer
        self.ftest('(-2.)**3.', math.pow(-2.0, 3.0), -8.0)
        self.ftest('(-2.)**2.', math.pow(-2.0, 2.0), 4.0)
        self.ftest('(-2.)**1.', math.pow(-2.0, 1.0), -2.0)
        self.ftest('(-2.)**0.', math.pow(-2.0, 0.0), 1.0)
        self.ftest('(-2.)**-0.', math.pow(-2.0, -0.0), 1.0)
        self.ftest('(-2.)**-1.', math.pow(-2.0, -1.0), -0.5)
        self.ftest('(-2.)**-2.', math.pow(-2.0, -2.0), 0.25)
        self.ftest('(-2.)**-3.', math.pow(-2.0, -3.0), -0.125)
        self.assertRaises(ValueError, math.pow, -2.0, -0.5)
        self.assertRaises(ValueError, math.pow, -2.0, 0.5)

        # the following tests have been commented out since they don't
        # really belong here:  the implementation of ** for floats is
        # independent of the implementation of math.pow
        #self.assertEqual(1**NAN, 1)
        #self.assertEqual(1**INF, 1)
        #self.assertEqual(1**NINF, 1)
        #self.assertEqual(1**0, 1)
        #self.assertEqual(1.**NAN, 1)
        #self.assertEqual(1.**INF, 1)
        #self.assertEqual(1.**NINF, 1)
        #self.assertEqual(1.**0, 1)

    def testRadians(self):
        self.assertRaises(TypeError, math.radians)
        self.ftest('radians(180)', math.radians(180), math.pi)
        self.ftest('radians(90)', math.radians(90), math.pi/2)
        self.ftest('radians(-45)', math.radians(-45), -math.pi/4)
        self.ftest('radians(0)', math.radians(0), 0)

    def testSin(self):
        self.assertRaises(TypeError, math.sin)
        self.ftest('sin(0)', math.sin(0), 0)
        self.ftest('sin(pi/2)', math.sin(math.pi/2), 1)
        self.ftest('sin(-pi/2)', math.sin(-math.pi/2), -1)
        try:
            self.assertTrue(math.isnan(math.sin(INF)))
            self.assertTrue(math.isnan(math.sin(NINF)))
        except ValueError:
            self.assertRaises(ValueError, math.sin, INF)
            self.assertRaises(ValueError, math.sin, NINF)
        self.assertTrue(math.isnan(math.sin(NAN)))

    def testSinh(self):
        self.assertRaises(TypeError, math.sinh)
        self.ftest('sinh(0)', math.sinh(0), 0)
        self.ftest('sinh(1)**2-cosh(1)**2', math.sinh(1)**2-math.cosh(1)**2, -1)
        self.ftest('sinh(1)+sinh(-1)', math.sinh(1)+math.sinh(-1), 0)
        self.assertEqual(math.sinh(INF), INF)
        self.assertEqual(math.sinh(NINF), NINF)
        self.assertTrue(math.isnan(math.sinh(NAN)))

    def testSqrt(self):
        self.assertRaises(TypeError, math.sqrt)
        self.ftest('sqrt(0)', math.sqrt(0), 0)
        self.ftest('sqrt(1)', math.sqrt(1), 1)
        self.ftest('sqrt(4)', math.sqrt(4), 2)
        self.assertEqual(math.sqrt(INF), INF)
        self.assertRaises(ValueError, math.sqrt, -1)
        self.assertRaises(ValueError, math.sqrt, NINF)
        self.assertTrue(math.isnan(math.sqrt(NAN)))

    def testTan(self):
        self.assertRaises(TypeError, math.tan)
        self.ftest('tan(0)', math.tan(0), 0)
        self.ftest('tan(pi/4)', math.tan(math.pi/4), 1)
        self.ftest('tan(-pi/4)', math.tan(-math.pi/4), -1)
        try:
            self.assertTrue(math.isnan(math.tan(INF)))
            self.assertTrue(math.isnan(math.tan(NINF)))
        except:
            self.assertRaises(ValueError, math.tan, INF)
            self.assertRaises(ValueError, math.tan, NINF)
        self.assertTrue(math.isnan(math.tan(NAN)))

    def testTanh(self):
        self.assertRaises(TypeError, math.tanh)
        self.ftest('tanh(0)', math.tanh(0), 0)
        self.ftest('tanh(1)+tanh(-1)', math.tanh(1)+math.tanh(-1), 0,
                   abs_tol=ulp(1))
        self.ftest('tanh(inf)', math.tanh(INF), 1)
        self.ftest('tanh(-inf)', math.tanh(NINF), -1)
        self.assertTrue(math.isnan(math.tanh(NAN)))

    @requires_IEEE_754
    @unittest.skipIf(sysconfig.get_config_var('TANH_PRESERVES_ZERO_SIGN') == 0,
                     "system tanh() function doesn't copy the sign")
    def testTanhSign(self):
        # check that tanh(-0.) == -0. on IEEE 754 systems
        self.assertEqual(math.tanh(-0.), -0.)
        self.assertEqual(math.copysign(1., math.tanh(-0.)),
                         math.copysign(1., -0.))

    def test_trunc(self):
        self.assertEqual(math.trunc(1), 1)
        self.assertEqual(math.trunc(-1), -1)
        self.assertEqual(type(math.trunc(1)), int)
        self.assertEqual(type(math.trunc(1.5)), int)
        self.assertEqual(math.trunc(1.5), 1)
        self.assertEqual(math.trunc(-1.5), -1)
        self.assertEqual(math.trunc(1.999999), 1)
        self.assertEqual(math.trunc(-1.999999), -1)
        self.assertEqual(math.trunc(-0.999999), -0)
        self.assertEqual(math.trunc(-100.999), -100)

        class TestTrunc(object):
            def __trunc__(self):
                return 23

        class TestNoTrunc(object):
            pass

        self.assertEqual(math.trunc(TestTrunc()), 23)

        self.assertRaises(TypeError, math.trunc)
        self.assertRaises(TypeError, math.trunc, 1, 2)
        self.assertRaises(TypeError, math.trunc, TestNoTrunc())

    def testIsfinite(self):
        self.assertTrue(math.isfinite(0.0))
        self.assertTrue(math.isfinite(-0.0))
        self.assertTrue(math.isfinite(1.0))
        self.assertTrue(math.isfinite(-1.0))
        self.assertFalse(math.isfinite(float("nan")))
        self.assertFalse(math.isfinite(float("inf")))
        self.assertFalse(math.isfinite(float("-inf")))

    def testIsnan(self):
        self.assertTrue(math.isnan(float("nan")))
        self.assertTrue(math.isnan(float("-nan")))
        self.assertTrue(math.isnan(float("inf") * 0.))
        self.assertFalse(math.isnan(float("inf")))
        self.assertFalse(math.isnan(0.))
        self.assertFalse(math.isnan(1.))

    def testIsinf(self):
        self.assertTrue(math.isinf(float("inf")))
        self.assertTrue(math.isinf(float("-inf")))
        self.assertTrue(math.isinf(1E400))
        self.assertTrue(math.isinf(-1E400))
        self.assertFalse(math.isinf(float("nan")))
        self.assertFalse(math.isinf(0.))
        self.assertFalse(math.isinf(1.))

    @requires_IEEE_754
    def test_nan_constant(self):
        self.assertTrue(math.isnan(math.nan))

    @requires_IEEE_754
    def test_inf_constant(self):
        self.assertTrue(math.isinf(math.inf))
        self.assertGreater(math.inf, 0.0)
        self.assertEqual(math.inf, float("inf"))
        self.assertEqual(-math.inf, float("-inf"))

    # RED_FLAG 16-Oct-2000 Tim
    # While 2.0 is more consistent about exceptions than previous releases, it
    # still fails this part of the test on some platforms.  For now, we only
    # *run* test_exceptions() in verbose mode, so that this isn't normally
    # tested.
    @unittest.skipUnless(verbose, 'requires verbose mode')
    def test_exceptions(self):
        try:
            x = math.exp(-1000000000)
        except:
            # mathmodule.c is failing to weed out underflows from libm, or
            # we've got an fp format with huge dynamic range
            self.fail("underflowing exp() should not have raised "
                        "an exception")
        if x != 0:
            self.fail("underflowing exp() should have returned 0")

        # If this fails, probably using a strict IEEE-754 conforming libm, and x
        # is +Inf afterwards.  But Python wants overflows detected by default.
        try:
            x = math.exp(1000000000)
        except OverflowError:
            pass
        else:
            self.fail("overflowing exp() didn't trigger OverflowError")

        # If this fails, it could be a puzzle.  One odd possibility is that
        # mathmodule.c's macros are getting confused while comparing
        # Inf (HUGE_VAL) to a NaN, and artificially setting errno to ERANGE
        # as a result (and so raising OverflowError instead).
        try:
            x = math.sqrt(-1.0)
        except ValueError:
            pass
        else:
            self.fail("sqrt(-1) didn't raise ValueError")

    @requires_IEEE_754
    def test_testfile(self):
        # Some tests need to be skipped on ancient OS X versions.
        # See issue #27953.
        SKIP_ON_TIGER = {'tan0064'}

        osx_version = None
        if sys.platform == 'darwin':
            version_txt = platform.mac_ver()[0]
            try:
                osx_version = tuple(map(int, version_txt.split('.')))
            except ValueError:
                pass

        fail_fmt = "{}: {}({!r}): {}"

        failures = []
        for id, fn, ar, ai, er, ei, flags in parse_testfile(test_file):
            # Skip if either the input or result is complex
            if ai != 0.0 or ei != 0.0:
                continue
            if fn in ['rect', 'polar']:
                # no real versions of rect, polar
                continue
            # Skip certain tests on OS X 10.4.
            if osx_version is not None and osx_version < (10, 5):
                if id in SKIP_ON_TIGER:
                    continue

            func = getattr(math, fn)

            if 'invalid' in flags or 'divide-by-zero' in flags:
                er = 'ValueError'
            elif 'overflow' in flags:
                er = 'OverflowError'

            try:
                result = func(ar)
            except ValueError:
                result = 'ValueError'
            except OverflowError:
                result = 'OverflowError'

            # Default tolerances
            ulp_tol, abs_tol = 5, 0.0

            failure = result_check(er, result, ulp_tol, abs_tol)
            if failure is None:
                continue

            msg = fail_fmt.format(id, fn, ar, failure)
            failures.append(msg)

        if failures:
            self.fail('Failures in test_testfile:\n  ' +
                      '\n  '.join(failures))

    @requires_IEEE_754
    def test_mtestfile(self):
        fail_fmt = "{}: {}({!r}): {}"

        failures = []
        for id, fn, arg, expected, flags in parse_mtestfile(math_testcases):
            func = getattr(math, fn)

            if 'invalid' in flags or 'divide-by-zero' in flags:
                expected = 'ValueError'
            elif 'overflow' in flags:
                expected = 'OverflowError'

            try:
                got = func(arg)
            except ValueError:
                got = 'ValueError'
            except OverflowError:
                got = 'OverflowError'

            # Default tolerances
            ulp_tol, abs_tol = 5, 0.0

            # Exceptions to the defaults
            if fn == 'gamma':
                # Experimental results on one platform gave
                # an accuracy of <= 10 ulps across the entire float
                # domain. We weaken that to require 20 ulp accuracy.
                ulp_tol = 20

            elif fn == 'lgamma':
                # we use a weaker accuracy test for lgamma;
                # lgamma only achieves an absolute error of
                # a few multiples of the machine accuracy, in
                # general.
                abs_tol = 1e-15

            elif fn == 'erfc' and arg >= 0.0:
                # erfc has less-than-ideal accuracy for large
                # arguments (x ~ 25 or so), mainly due to the
                # error involved in computing exp(-x*x).
                #
                # Observed between CPython and mpmath at 25 dp:
                #       x <  0 : err <= 2 ulp
                #  0 <= x <  1 : err <= 10 ulp
                #  1 <= x < 10 : err <= 100 ulp
                # 10 <= x < 20 : err <= 300 ulp
                # 20 <= x      : < 600 ulp
                #
                if arg < 1.0:
                    ulp_tol = 10
                elif arg < 10.0:
                    ulp_tol = 100
                else:
                    ulp_tol = 1000

            failure = result_check(expected, got, ulp_tol, abs_tol)
            if failure is None:
                continue

            msg = fail_fmt.format(id, fn, arg, failure)
            failures.append(msg)

        if failures:
            self.fail('Failures in test_mtestfile:\n  ' +
                      '\n  '.join(failures))


class IsCloseTests(unittest.TestCase):
    isclose = math.isclose  # subclasses should override this

    def assertIsClose(self, a, b, *args, **kwargs):
        self.assertTrue(self.isclose(a, b, *args, **kwargs),
                        msg="%s and %s should be close!" % (a, b))

    def assertIsNotClose(self, a, b, *args, **kwargs):
        self.assertFalse(self.isclose(a, b, *args, **kwargs),
                         msg="%s and %s should not be close!" % (a, b))

    def assertAllClose(self, examples, *args, **kwargs):
        for a, b in examples:
            self.assertIsClose(a, b, *args, **kwargs)

    def assertAllNotClose(self, examples, *args, **kwargs):
        for a, b in examples:
            self.assertIsNotClose(a, b, *args, **kwargs)

    def test_negative_tolerances(self):
        # ValueError should be raised if either tolerance is less than zero
        with self.assertRaises(ValueError):
            self.assertIsClose(1, 1, rel_tol=-1e-100)
        with self.assertRaises(ValueError):
            self.assertIsClose(1, 1, rel_tol=1e-100, abs_tol=-1e10)

    def test_identical(self):
        # identical values must test as close
        identical_examples = [(2.0, 2.0),
                              (0.1e200, 0.1e200),
                              (1.123e-300, 1.123e-300),
                              (12345, 12345.0),
                              (0.0, -0.0),
                              (345678, 345678)]
        self.assertAllClose(identical_examples, rel_tol=0.0, abs_tol=0.0)

    def test_eight_decimal_places(self):
        # examples that are close to 1e-8, but not 1e-9
        eight_decimal_places_examples = [(1e8, 1e8 + 1),
                                         (-1e-8, -1.000000009e-8),
                                         (1.12345678, 1.12345679)]
        self.assertAllClose(eight_decimal_places_examples, rel_tol=1e-8)
        self.assertAllNotClose(eight_decimal_places_examples, rel_tol=1e-9)

    def test_near_zero(self):
        # values close to zero
        near_zero_examples = [(1e-9, 0.0),
                              (-1e-9, 0.0),
                              (-1e-150, 0.0)]
        # these should not be close to any rel_tol
        self.assertAllNotClose(near_zero_examples, rel_tol=0.9)
        # these should be close to abs_tol=1e-8
        self.assertAllClose(near_zero_examples, abs_tol=1e-8)

    def test_identical_infinite(self):
        # these are close regardless of tolerance -- i.e. they are equal
        self.assertIsClose(INF, INF)
        self.assertIsClose(INF, INF, abs_tol=0.0)
        self.assertIsClose(NINF, NINF)
        self.assertIsClose(NINF, NINF, abs_tol=0.0)

    def test_inf_ninf_nan(self):
        # these should never be close (following IEEE 754 rules for equality)
        not_close_examples = [(NAN, NAN),
                              (NAN, 1e-100),
                              (1e-100, NAN),
                              (INF, NAN),
                              (NAN, INF),
                              (INF, NINF),
                              (INF, 1.0),
                              (1.0, INF),
                              (INF, 1e308),
                              (1e308, INF)]
        # use largest reasonable tolerance
        self.assertAllNotClose(not_close_examples, abs_tol=0.999999999999999)

    def test_zero_tolerance(self):
        # test with zero tolerance
        zero_tolerance_close_examples = [(1.0, 1.0),
                                         (-3.4, -3.4),
                                         (-1e-300, -1e-300)]
        self.assertAllClose(zero_tolerance_close_examples, rel_tol=0.0)

        zero_tolerance_not_close_examples = [(1.0, 1.000000000000001),
                                             (0.99999999999999, 1.0),
                                             (1.0e200, .999999999999999e200)]
        self.assertAllNotClose(zero_tolerance_not_close_examples, rel_tol=0.0)

    def test_asymmetry(self):
        # test the asymmetry example from PEP 485
        self.assertAllClose([(9, 10), (10, 9)], rel_tol=0.1)

    def test_integers(self):
        # test with integer values
        integer_examples = [(100000001, 100000000),
                            (123456789, 123456788)]

        self.assertAllClose(integer_examples, rel_tol=1e-8)
        self.assertAllNotClose(integer_examples, rel_tol=1e-9)

    def test_decimals(self):
        # test with Decimal values
        from decimal import Decimal

        decimal_examples = [(Decimal('1.00000001'), Decimal('1.0')),
                            (Decimal('1.00000001e-20'), Decimal('1.0e-20')),
                            (Decimal('1.00000001e-100'), Decimal('1.0e-100')),
                            (Decimal('1.00000001e20'), Decimal('1.0e20'))]
        self.assertAllClose(decimal_examples, rel_tol=1e-8)
        self.assertAllNotClose(decimal_examples, rel_tol=1e-9)

    def test_fractions(self):
        # test with Fraction values
        from fractions import Fraction

        fraction_examples = [
            (Fraction(1, 100000000) + 1, Fraction(1)),
            (Fraction(100000001), Fraction(100000000)),
            (Fraction(10**8 + 1, 10**28), Fraction(1, 10**20))]
        self.assertAllClose(fraction_examples, rel_tol=1e-8)
        self.assertAllNotClose(fraction_examples, rel_tol=1e-9)


def test_main():
    from doctest import DocFileSuite
    suite = unittest.TestSuite()
    suite.addTest(unittest.makeSuite(MathTests))
    suite.addTest(unittest.makeSuite(IsCloseTests))
    suite.addTest(DocFileSuite("ieee754.txt"))
    run_unittest(suite)

if __name__ == '__main__':
    test_main()


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
25 Jul 2024 8.44 AM
root / linksafe
0755
__pycache__
--
25 Jul 2024 8.41 AM
root / linksafe
0755
audiodata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
capath
--
25 Jul 2024 8.41 AM
root / linksafe
0755
cjkencodings
--
25 Jul 2024 8.41 AM
root / linksafe
0755
data
--
25 Jul 2024 8.41 AM
root / linksafe
0755
decimaltestdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
dtracedata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
eintrdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
encoded_modules
--
25 Jul 2024 8.41 AM
root / linksafe
0755
imghdrdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
libregrtest
--
25 Jul 2024 8.41 AM
root / linksafe
0755
sndhdrdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
subprocessdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
support
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_asyncio
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_email
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_import
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_importlib
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_json
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_tools
--
25 Jul 2024 8.41 AM
root / linksafe
0755
test_warnings
--
25 Jul 2024 8.41 AM
root / linksafe
0755
tracedmodules
--
25 Jul 2024 8.41 AM
root / linksafe
0755
xmltestdata
--
25 Jul 2024 8.41 AM
root / linksafe
0755
Sine-1000Hz-300ms.aif
60.25 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
__init__.py
0.046 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
__main__.py
0.04 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
_test_multiprocessing.py
140.439 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
allsans.pem
4.919 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
ann_module.py
0.931 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
ann_module2.py
0.507 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
ann_module3.py
0.438 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
audiotests.py
12.101 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
autotest.py
0.204 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
bad_coding.py
0.023 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
bad_coding2.py
0.029 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badcert.pem
1.883 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
badkey.pem
2.111 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
badsyntax_3131.py
0.031 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future10.py
0.093 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future3.py
0.168 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future4.py
0.149 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future5.py
0.18 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future6.py
0.157 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future7.py
0.191 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future8.py
0.119 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_future9.py
0.139 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
badsyntax_pep3120.py
0.014 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
bisect.py
4.851 KB
17 Apr 2024 5.19 PM
root / linksafe
0755
bytecode_helper.py
1.563 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
cfgparser.1
0.065 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
cfgparser.2
19.016 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
cfgparser.3
1.55 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
cmath_testcases.txt
141.047 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
coding20731.py
0.018 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
curses_tests.py
1.225 KB
17 Apr 2024 5.19 PM
root / linksafe
0755
datetimetester.py
196.875 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
dis_module.py
0.074 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
doctest_aliases.py
0.234 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
double_const.py
1.184 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
empty.vbs
0.068 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
exception_hierarchy.txt
1.779 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
ffdh3072.pem
2.16 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
final_a.py
0.401 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
final_b.py
0.401 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
floating_points.txt
15.92 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
fork_wait.py
2.56 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
formatfloat_testcases.txt
7.451 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
future_test1.py
0.224 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
future_test2.py
0.146 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
gdb_sample.py
0.149 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
ieee754.txt
3.206 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
imp_dummy.py
0.062 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
inspect_fodder.py
1.238 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
inspect_fodder2.py
1.773 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
keycert.passwd.pem
4.005 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
keycert.pem
3.963 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
keycert2.pem
3.971 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
keycert3.pem
9.219 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
keycert4.pem
9.232 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
list_tests.py
18.378 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
lock_tests.py
28.201 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
mailcap.txt
1.24 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
make_ssl_certs.py
8.518 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
mapping_tests.py
21.746 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
math_testcases.txt
23.186 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
memory_watchdog.py
0.839 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
mime.types
47.372 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
mock_socket.py
3.526 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
mod_generics_cache.py
1.133 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
mp_fork_bomb.py
0.438 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
mp_preload.py
0.343 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
multibytecodec_support.py
14.028 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
nokia.pem
1.878 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
nullbytecert.pem
5.308 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
nullcert.pem
0 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
outstanding_bugs.py
0.361 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pickletester.py
101.052 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
profilee.py
2.97 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pstats.pck
65.046 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
pycacert.pem
5.523 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
pycakey.pem
2.426 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
pyclbr_input.py
0.633 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pydoc_mod.py
0.696 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pydocfodder.py
6.184 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
pystone.py
7.561 KB
17 Apr 2024 5.19 PM
root / linksafe
0755
pythoninfo.py
16.097 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
randv2_32.pck
7.341 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
randv2_64.pck
7.192 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
randv3.pck
7.816 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
re_tests.py
31.058 KB
17 Apr 2024 5.19 PM
root / linksafe
0755
recursion.tar
0.504 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
regrtest.py
1.345 KB
17 Apr 2024 5.19 PM
root / linksafe
0755
relimport.py
0.026 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
reperf.py
0.525 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
revocation.crl
0.781 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
sample_doctest.py
1.017 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
sample_doctest_no_docstrings.py
0.222 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
sample_doctest_no_doctests.py
0.263 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
selfsigned_pythontestdotnet.pem
2.08 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
seq_tests.py
14.058 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
sgml_input.html
8.1 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
signalinterproctester.py
2.696 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
sortperf.py
4.693 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
ssl_cert.pem
1.533 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
ssl_key.passwd.pem
2.472 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
ssl_key.pem
2.43 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
ssl_servers.py
7.085 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
ssltests.py
1.026 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
string_tests.py
63.908 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
talos-2019-0758.pem
1.299 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
test___all__.py
3.809 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test___future__.py
2.364 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test__locale.py
7.71 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test__opcode.py
0.83 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test__osx_support.py
11.409 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_abc.py
13.758 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_abstract_numbers.py
1.492 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_aifc.py
16.369 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_argparse.py
162.614 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_array.py
47.009 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_asdl_parser.py
3.924 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ast.py
48.946 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_asyncgen.py
29.32 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_asynchat.py
10.092 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_asyncore.py
26.281 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_atexit.py
5.242 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_audioop.py
28.236 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_augassign.py
7.684 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_base64.py
30.132 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_baseexception.py
6.863 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bdb.py
41.21 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bigaddrspace.py
2.919 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bigmem.py
44.165 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_binascii.py
14.939 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_binhex.py
1.463 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_binop.py
14.163 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bisect.py
13.633 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bool.py
12.396 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_buffer.py
158.851 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bufio.py
2.536 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_builtin.py
65.515 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bytes.py
68.2 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_bz2.py
37.109 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_calendar.py
43.993 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_call.py
9.089 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_capi.py
23.571 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cgi.py
21.85 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cgitb.py
2.505 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_charmapcodec.py
1.678 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_class.py
15.079 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cmath.py
24.275 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cmd.py
6.112 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cmd_line.py
20.707 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cmd_line_script.py
28.158 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_code.py
10.402 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_code_module.py
5.514 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codeccallbacks.py
42.796 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecencodings_cn.py
3.857 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecencodings_hk.py
0.685 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecencodings_iso2022.py
1.357 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecencodings_jp.py
4.792 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecencodings_kr.py
2.957 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecencodings_tw.py
0.665 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecmaps_cn.py
0.729 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecmaps_hk.py
0.377 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecmaps_jp.py
1.703 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecmaps_kr.py
1.165 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecmaps_tw.py
0.688 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codecs.py
125.373 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_codeop.py
7.373 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_collections.py
74.127 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_colorsys.py
3.835 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_compare.py
3.822 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_compile.py
27.658 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_compileall.py
22.838 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_complex.py
29.635 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_concurrent_futures.py
28.385 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_configparser.py
83.014 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_contains.py
3.485 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_contextlib.py
30.754 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_copy.py
25.789 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_copyreg.py
4.393 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_coroutines.py
57.835 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_cprofile.py
5.725 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_crashers.py
1.156 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_crypt.py
1.503 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_csv.py
47.06 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ctypes.py
0.18 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_curses.py
18.85 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_datetime.py
2.149 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dbm.py
6.436 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dbm_dumb.py
10.173 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dbm_gnu.py
5.219 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dbm_ndbm.py
4.306 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_decimal.py
206.513 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_decorators.py
9.477 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_defaultdict.py
5.892 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_deque.py
33.862 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_descr.py
182.598 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_descrtut.py
11.527 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_devpoll.py
4.51 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dict.py
38.296 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dict_version.py
5.869 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dictcomps.py
3.668 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dictviews.py
11.621 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_difflib.py
19.358 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_difflib_expect.html
100.846 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
test_dis.py
43.371 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_distutils.py
0.366 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_doctest.py
93.169 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_doctest.txt
0.293 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
test_doctest2.py
2.304 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_doctest2.txt
0.383 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
test_doctest3.txt
0.08 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
test_doctest4.txt
0.238 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
test_docxmlrpc.py
8.727 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dtrace.py
5.23 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dummy_thread.py
9.156 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dummy_threading.py
1.702 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dynamic.py
4.291 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_dynamicclassattribute.py
9.565 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_eintr.py
1.322 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ensurepip.py
9.688 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_enum.py
92.62 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_enumerate.py
7.897 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_eof.py
0.784 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_epoll.py
8.993 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_errno.py
1.044 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_exception_hierarchy.py
7.229 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_exception_variations.py
3.855 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_exceptions.py
46.114 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_extcall.py
12.09 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_faulthandler.py
27.586 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fcntl.py
5.098 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_file.py
10.613 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_file_eintr.py
10.6 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_filecmp.py
8.686 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fileinput.py
36.57 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fileio.py
19.188 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_finalization.py
14.162 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_float.py
62.886 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_flufl.py
1.315 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fnmatch.py
4.694 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fork1.py
3.736 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_format.py
22.836 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fractions.py
25.923 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_frame.py
4.371 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_fstring.py
40.232 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ftplib.py
39.627 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_funcattrs.py
12.696 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_functools.py
76.299 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_future.py
3.74 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_future3.py
0.479 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_future4.py
0.103 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_future5.py
0.498 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_gc.py
33.828 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_gdb.py
39.836 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_generator_stop.py
0.921 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_generators.py
59.195 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_genericpath.py
20.54 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_genexps.py
7.115 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_getargs2.py
45.413 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_getopt.py
6.748 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_getpass.py
6.286 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_gettext.py
32.957 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_glob.py
12.391 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_global.py
1.309 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_grammar.py
46.846 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_grp.py
3.543 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_gzip.py
26.96 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_hash.py
11.442 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_hashlib.py
38.781 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_heapq.py
15.657 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_hmac.py
20.006 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_html.py
4.234 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_htmlparser.py
31.932 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_http_cookiejar.py
75.154 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_http_cookies.py
18.523 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_httplib.py
74.008 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_httpservers.py
40.06 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_idle.py
0.919 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_imaplib.py
38.58 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_imghdr.py
4.655 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_imp.py
16.051 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_index.py
8.366 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_inspect.py
141.337 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_int.py
19.213 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_int_literal.py
6.888 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_io.py
152.122 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ioctl.py
3.194 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ipaddress.py
87.039 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_isinstance.py
9.773 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_iter.py
31.508 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_iterlen.py
7.096 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_itertools.py
96.977 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_keyword.py
5.703 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_keywordonlyarg.py
7.049 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_kqueue.py
8.806 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_largefile.py
6.829 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_lib2to3.py
0.099 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_linecache.py
7.793 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_list.py
5.32 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_listcomps.py
3.763 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_locale.py
21.864 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_logging.py
154.747 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_long.py
51.75 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_longexp.py
0.228 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_lzma.py
77.824 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_macpath.py
6.027 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_macurl2path.py
1.796 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_mailbox.py
90.645 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_mailcap.py
9.88 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_marshal.py
19.469 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_math.py
57.589 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_memoryio.py
30.294 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_memoryview.py
17.438 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_metaclass.py
6.201 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_mimetypes.py
4.193 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_minidom.py
65.763 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_mmap.py
27.765 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_module.py
8.441 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_modulefinder.py
9.055 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_msilib.py
3.04 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_multibytecodec.py
10.064 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_multiprocessing_fork.py
0.466 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_multiprocessing_forkserver.py
0.383 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_multiprocessing_main_handling.py
11.37 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_multiprocessing_spawn.py
0.271 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_netrc.py
4.625 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_nis.py
1.129 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_nntplib.py
61.718 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_normalization.py
3.323 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ntpath.py
23.904 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_numeric_tower.py
7.18 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_opcodes.py
3.605 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_openpty.py
0.586 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_operator.py
22.744 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_optparse.py
61.021 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ordered_dict.py
28.938 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_os.py
132.758 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ossaudiodev.py
7.047 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_osx_env.py
1.297 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_parser.py
32.376 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pathlib.py
88.337 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pdb.py
41.475 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_peepholer.py
12.67 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pickle.py
18.58 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pickletools.py
4.119 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pipes.py
6.593 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pkg.py
9.594 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pkgimport.py
2.665 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pkgutil.py
17.27 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_platform.py
16.658 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_plistlib.py
37.165 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_poll.py
7.352 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_popen.py
1.978 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_poplib.py
16.523 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_posix.py
54.785 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_posixpath.py
28.659 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pow.py
4.366 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pprint.py
43.489 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_print.py
7.37 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_profile.py
7.707 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_property.py
8.77 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pstats.py
1.169 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pty.py
11.485 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pulldom.py
12.332 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pwd.py
4.529 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_py_compile.py
5.229 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pyclbr.py
6.816 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pydoc.py
43.538 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_pyexpat.py
26.522 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_queue.py
12.866 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_quopri.py
7.775 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_raise.py
11.026 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_random.py
40.081 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_range.py
24.413 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_re.py
96.54 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_readline.py
12.264 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_regrtest.py
39.44 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_repl.py
2.249 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_reprlib.py
15.115 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_resource.py
6.836 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_richcmp.py
11.91 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_rlcompleter.py
6.298 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_robotparser.py
10.094 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_runpy.py
31.047 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sax.py
45.459 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sched.py
6.618 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_scope.py
19.704 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_script_helper.py
5.777 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_secrets.py
4.278 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_select.py
2.646 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_selectors.py
16.657 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_set.py
64.235 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_setcomps.py
3.703 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_shelve.py
6.239 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_shlex.py
10.917 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_shutil.py
75.452 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_signal.py
37.513 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_site.py
25.311 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_slice.py
8.247 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_smtpd.py
40.141 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_smtplib.py
52.817 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_smtpnet.py
2.698 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sndhdr.py
1.426 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_socket.py
210.399 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_socketserver.py
17.115 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sort.py
8.461 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_source_encoding.py
7.88 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_spwd.py
2.709 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sqlite.py
0.872 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ssl.py
174.097 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_startfile.py
1.165 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_stat.py
8.095 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_statistics.py
74.316 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_strftime.py
7.542 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_string.py
18.098 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_string_literals.py
9.827 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_stringprep.py
3.04 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_strptime.py
31.569 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_strtod.py
20.056 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_struct.py
31.229 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_structmembers.py
4.703 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_structseq.py
3.871 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_subclassinit.py
8.129 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_subprocess.py
128.067 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sunau.py
4.522 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sundry.py
2.052 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_super.py
10.663 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_support.py
19.148 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_symbol.py
1.836 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_symtable.py
6.788 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_syntax.py
18.569 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sys.py
47.588 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sys_setprofile.py
10.903 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sys_settrace.py
38.804 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_sysconfig.py
18.438 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_syslog.py
1.15 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tarfile.py
96.626 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tcl.py
28.938 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_telnetlib.py
12.728 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tempfile.py
50.371 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_textwrap.py
37.688 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_thread.py
8.436 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_threaded_import.py
8.576 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_threadedtempfile.py
1.887 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_threading.py
40.577 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_threading_local.py
6.134 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_threadsignals.py
10.079 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_time.py
36.702 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_timeit.py
14.418 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_timeout.py
11.108 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tix.py
0.738 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tk.py
0.354 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tokenize.py
61.854 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_trace.py
15.955 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_traceback.py
43.482 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tracemalloc.py
35.398 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ttk_guionly.py
0.729 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ttk_textonly.py
0.292 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_tuple.py
7.346 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_turtle.py
12.36 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_typechecks.py
2.554 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_types.py
54.115 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_typing.py
84.543 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_ucn.py
9.352 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unary.py
1.626 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unicode.py
128.433 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unicode_file.py
5.728 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unicode_file_functions.py
6.843 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unicode_identifiers.py
0.881 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unicodedata.py
12.6 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unittest.py
0.279 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_univnewlines.py
3.83 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unpack.py
2.996 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_unpack_ex.py
8.723 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urllib.py
67.881 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urllib2.py
75.968 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urllib2_localnet.py
24.482 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urllib2net.py
12.412 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urllib_response.py
1.688 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urllibnet.py
8.829 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_urlparse.py
60.517 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_userdict.py
7.638 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_userlist.py
1.807 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_userstring.py
1.435 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_utf8source.py
1.147 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_uu.py
6.699 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_uuid.py
23.154 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_venv.py
17.78 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_wait3.py
1.155 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_wait4.py
1.154 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_wave.py
4.088 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_weakref.py
64.672 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_weakset.py
14.952 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_webbrowser.py
6.181 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_winconsoleio.py
6.146 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_winreg.py
21.199 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_winsound.py
4.595 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_with.py
25.839 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_wsgiref.py
27.085 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_xdrlib.py
2.174 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_xml_dom_minicompat.py
4.182 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_xml_etree.py
115.412 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_xml_etree_c.py
6.695 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_xmlrpc.py
53.994 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_xmlrpc_net.py
0.991 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_yield_from.py
30.009 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_zipapp.py
13.74 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_zipfile.py
88.894 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_zipfile64.py
5.724 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_zipimport.py
28.429 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_zipimport_support.py
10.463 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
test_zlib.py
34.028 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
testcodec.py
1.021 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
testtar.tar
425 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
tf_inherit_check.py
0.697 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
threaded_import_hangers.py
1.449 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
time_hashlib.py
2.827 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
tokenize_tests-latin1-coding-cookie-and-utf8-bom-sig.txt
0.434 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
tokenize_tests-no-coding-cookie-and-utf8-bom-sig-only.txt
0.296 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
tokenize_tests-utf8-coding-cookie-and-no-utf8-bom-sig.txt
0.411 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
tokenize_tests-utf8-coding-cookie-and-utf8-bom-sig.txt
0.319 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
tokenize_tests.txt
2.654 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
win_console_handler.py
1.383 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
xmltests.py
0.487 KB
17 Apr 2024 5.19 PM
root / linksafe
0644
zip_cp437_header.zip
0.264 KB
4 Sep 2021 3.49 AM
root / linksafe
0644
zipdir.zip
0.365 KB
4 Sep 2021 3.49 AM
root / linksafe
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF