$99 GRAYBYTE WORDPRESS FILE MANAGER $91

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/heapy/test/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/guppy/heapy/test//test_OutputHandling.py
from guppy.heapy.test import support


class FirstCase(support.TestCase):
    def setUp(self):
        support.TestCase.setUp(self)
        self.OH = self.heapy.OutputHandling

    def test_1(self):
        class T:
            def __init__(self, test, numlines, get_num_lines=None, get_more_msg=None):
                mod = test.OH

                def get_line_iter():
                    for i in range(numlines):
                        yield '%d' % i

                self.mod = mod
                mod.setup_printing(
                    self,
                    get_line_iter=get_line_iter,
                    max_more_lines=4,
                    get_num_lines=get_num_lines,
                    get_more_msg=get_more_msg)

        self.aseq(str(T(self, 4)), '0\n1\n2\n3')

        t = T(self, 6, lambda: 6)

        self.aseq(
            str(t), "0\n1\n2\n3\n<Lines 0..3 of 6. Type e.g. '_.more' for more.>")
        x = t.more
        self.aseq(str(x), '4\n5')
        self.aseq(
            str(x.top), "0\n1\n2\n3\n<Lines 0..3 of 6. Type e.g. '_.more' for more.>")

        self.aseq(str(x.all), "0\n1\n2\n3\n4\n5")

        t = T(self, 6, get_more_msg=lambda f, t: '<%d more rows>' % (6-t))
        self.aseq(str(t), '0\n1\n2\n3\n<3 more rows>')


def test_main(debug=0):
    support.run_unittest(FirstCase, debug)


if __name__ == "__main__":
    test_main()

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
14 Aug 2025 9.24 PM
root / root
0755
__pycache__
--
14 Aug 2025 9.24 PM
root / root
0755
__init__.py
0.046 KB
17 Apr 2025 8.10 PM
root / root
0644
support.py
3.725 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Classifiers.py
28.378 KB
17 Apr 2025 8.10 PM
root / root
0644
test_ER.py
12.557 KB
17 Apr 2025 8.10 PM
root / root
0644
test_OutputHandling.py
1.344 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Part.py
10.154 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Path.py
28.824 KB
17 Apr 2025 8.10 PM
root / root
0644
test_RefPat.py
16.754 KB
17 Apr 2025 8.10 PM
root / root
0644
test_RetaGraph.py
0.093 KB
17 Apr 2025 8.10 PM
root / root
0644
test_Spec.py
0.343 KB
17 Apr 2025 8.10 PM
root / root
0644
test_UniSet.py
1.212 KB
17 Apr 2025 8.10 PM
root / root
0644
test_View.py
7.988 KB
17 Apr 2025 8.10 PM
root / root
0644
test_all.py
0.666 KB
17 Apr 2025 8.10 PM
root / root
0644
test_dependencies.py
0.209 KB
17 Apr 2025 8.10 PM
root / root
0644
test_gsl.py
0.411 KB
17 Apr 2025 8.10 PM
root / root
0644
test_heapyc.py
15.598 KB
17 Apr 2025 8.10 PM
root / root
0644
test_menuleak.py
3.121 KB
17 Apr 2025 8.10 PM
root / root
0644
test_sf.py
0.569 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF