| Server IP : 43.141.49.119 / Your IP : 113.219.202.44 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib64/python3.11/unittest/__pycache__/ |
Upload File : |
�
��e�
� � � d dl Z d dlZddlmZ ej dddg� � Z G d� de j � � Z G d � d
e� � ZdS )� N� )�_BaseTestCaseContext�_LoggingWatcher�records�outputc �$ � e Zd ZdZd� Zd� Zd� ZdS )�_CapturingHandlerzM
A logging handler capturing all (raw and formatted) logging output.
c �n � t j � | � � t g g � � | _ d S �N)�logging�Handler�__init__r �watcher��selfs �&/usr/lib64/python3.11/unittest/_log.pyr z_CapturingHandler.__init__ s- � ��� � ��&�&�&�&�r�2�.�.����� c � � d S r � r s r �flushz_CapturingHandler.flush s � ��r c � � | j j � |� � | � |� � }| j j � |� � d S r )r r �append�formatr )r �record�msgs r �emitz_CapturingHandler.emit sK � ����#�#�F�+�+�+��k�k�&�!�!�����"�"�3�'�'�'�'�'r N)�__name__�
__module__�__qualname__�__doc__r r r r r r r r
sK � � � � � �� �/� /� /�
�
�
�(� (� (� (� (r r c �( � e Zd ZdZdZd� Zd� Zd� ZdS )�_AssertLogsContextz6A context manager for assertLogs() and assertNoLogs() z"%(levelname)s:%(name)s:%(message)sc �� � t j | |� � || _ |r&t j � ||� � | _ nt j | _ d | _ || _ d S r )
r r �logger_namer �_nameToLevel�get�level�INFOr �no_logs)r � test_caser$ r'