Sindbad~EG File Manager
�
'Μg� � �� � d dl mZmZ ej d� Zd dlmZ d dlZd dlZd dl Z d dl
Z
d dlmZ G d� de
j � Zedk( r e
j � yy) � )�
import_helper�threading_helper�syslog)�supportN)�dedentc �| � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
ej � d � � Z
d
� Zd� Zd� Zy
)�Testc �, � t j � y �N)r �closelog��selfs �-/usr/local/lib/python3.12/test/test_syslog.py�tearDownz
Test.tearDown s � ����� c �x � t j d� | j t t j d� y )N�pythonu �)r �openlog�assertRaises�UnicodeEncodeErrorr
s r �test_openlogzTest.test_openlog s% � ����x� ����,�f�n�n�h�Gr c � � t j d� t j d� t j t j d� y )Nr �$test message from python test_syslog�"test error from python test_syslog)r r �LOG_ERRr
s r �test_syslogzTest.test_syslog s. � ����x� ��
�
�<�=��
�
�f�n�n�&J�Kr c � � t j � t j d� t j t j d� y )Nr r )r r r r
s r �test_syslog_implicit_openzTest.test_syslog_implicit_open s, � ������
�
�<�=��
�
�f�n�n�&J�Kr c �~ � t j d� t j � t j � y )Nr )r r r r
s r �
test_closelogzTest.test_closelog"