python (3.11.7)
    e
                         d dl mZmZ  ej        d          Zd dlmZ d dlZd dlZd dl	Z	d dl
Z
 G d de
j                  Ze
dk    r e
j                     dS dS )    )
import_helperthreading_helpersyslog)supportNc                   n    e Zd Zd Zd Zd Zd Zd Zd Zd Z	d Z
 ej                    d	             Z
d
S )Testc                 8    t                                            d S N)r   closelogselfs    D/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/test/test_syslog.pytearDownz
Test.tearDown   s        c                     t                               d           |                     t          t           j        d           d S )Npythonu   )r   openlogassertRaisesUnicodeEncodeErrorr   s    r   test_openlogzTest.test_openlog   s5    x   ,fnhGGGGGr   c                     t                               d           t                                d           t                                t           j        d           d S )Nr   $test message from python test_syslog"test error from python test_syslog)r   r   LOG_ERRr   s    r   test_syslogzTest.test_syslog   sD    x   
<===
fn&JKKKKKr   c                     t                                            t                                d           t                                t           j        d           d S )Nr   r   )r   r   r   r   s    r   test_syslog_implicit_openzTest.test_syslog_implicit_open   sB    
<===
fn&JKKKKKr   c                     t                               d           t                                            t                                            d S )Nr   )r   r   r   r   s    r   
test_closelogzTest.test_closelog!   s:    x   r   c                 :   t                               t           j                  }t                               |          }|                     t                               d          |           |                     t                               |          |           d S )Nr   )r   LOG_UPTOLOG_WARNING
setlogmaskassertEqual)r
   maskoldmasks      r   test_setlogmaskzTest.test_setlogmask&