✘✘ 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.84
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/alt/python38/lib64/python3.8/unittest/test//_test_warnings.py
# helper module for test_runner.Test_TextTestRunner.test_warnings

"""
This module has a number of tests that raise different kinds of warnings.
When the tests are run, the warnings are caught and their messages are printed
to stdout.  This module also accepts an arg that is then passed to
unittest.main to affect the behavior of warnings.
Test_TextTestRunner.test_warnings executes this script with different
combinations of warnings args and -W flags and check that the output is correct.
See #10535.
"""

import sys
import unittest
import warnings

def warnfun():
    warnings.warn('rw', RuntimeWarning)

class TestWarnings(unittest.TestCase):
    # unittest warnings will be printed at most once per type (max one message
    # for the fail* methods, and one for the assert* methods)
    def test_assert(self):
        self.assertEquals(2+2, 4)
        self.assertEquals(2*2, 4)
        self.assertEquals(2**2, 4)

    def test_fail(self):
        self.failUnless(1)
        self.failUnless(True)

    def test_other_unittest(self):
        self.assertAlmostEqual(2+2, 4)
        self.assertNotAlmostEqual(4+4, 2)

    # these warnings are normally silenced, but they are printed in unittest
    def test_deprecation(self):
        warnings.warn('dw', DeprecationWarning)
        warnings.warn('dw', DeprecationWarning)
        warnings.warn('dw', DeprecationWarning)

    def test_import(self):
        warnings.warn('iw', ImportWarning)
        warnings.warn('iw', ImportWarning)
        warnings.warn('iw', ImportWarning)

    # user warnings should always be printed
    def test_warning(self):
        warnings.warn('uw')
        warnings.warn('uw')
        warnings.warn('uw')

    # these warnings come from the same place; they will be printed
    # only once by default or three times if the 'always' filter is used
    def test_function(self):

        warnfun()
        warnfun()
        warnfun()



if __name__ == '__main__':
    with warnings.catch_warnings(record=True) as ws:
        # if an arg is provided pass it to unittest.main as 'warnings'
        if len(sys.argv) == 2:
            unittest.main(exit=False, warnings=sys.argv.pop())
        else:
            unittest.main(exit=False)

    # print all the warning messages collected
    for w in ws:
        print(w.message)

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

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


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
1 Jan 1970 12.00 AM
root / root
0
__pycache__
--
25 Oct 2024 11.54 AM
root / linksafe
0755
testmock
--
25 Oct 2024 11.54 AM
root / linksafe
0755
__init__.py
0.57 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
__main__.py
0.582 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
_test_warnings.py
2.25 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
dummy.py
0.049 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
support.py
3.664 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_assertions.py
16.678 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_async_case.py
6.897 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_break.py
9.271 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_case.py
71.863 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_discovery.py
33.211 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_functiontestcase.py
5.41 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_loader.py
61.577 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_program.py
14.696 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_result.py
24.414 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_runner.py
35.904 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_setups.py
16.116 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_skipping.py
9.438 KB
6 Sep 2024 8.41 PM
root / linksafe
0644
test_suite.py
14.828 KB
6 Sep 2024 8.41 PM
root / linksafe
0644

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