. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.221 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/idlelib/idle_test/__pycache__/ |
Upload File : |
3
��2a�
� @ s� d dl mZ d dl mZ d dlZd dlmZ d dlZejZdej kZ
dZed ZG dd � d ej
�ZG d
d� dej
�Ze dkr�ejd
d� dS )� )�run)�pyshellN)�captured_stderrZidlezf
Warning (from warnings module):
File "test_warning.py", line 99
Line of code
UserWarning: Test
z>>> c @ s( e Zd Zejed�dd� �Zdd� ZdS )�RunWarnTestz#Does not work when run within Idle.c C sD | j tjt� tjd� | j tjtj� tjd� | j tjt� d S )NTF)�assertIs�warnings�showwarningr �capture_warnings�idle_showwarning_subproc)�self� r �1/opt/alt/python36/lib64/python3.6/test_warning.py�test_showwarnings! s
zRunWarnTest.test_showwarningsc C sB t � �2}tjdtdd|d� | jtj� |j� j� � W d Q R X d S )N�Testztest_warning.py�c zLine of code)r r r
�UserWarning�assertEqual�idlemsg�
splitlines�getvalue)r �fr r r
�
test_run_show) s zRunWarnTest.test_run_showN)�__name__�
__module__�__qualname__�unittest�skipIf�running_in_idler r r r r r
r s r c @ s0 e Zd Zejed�dd� �Zdd� Zdd� ZdS ) �
ShellWarnTestz#Does not work when run within Idle.c C sD | j tjt� tjd� | j tjtj� tjd� | j tjt� d S )NTF)r r r �shellr �idle_showwarning)r r r r
r 3 s
zShellWarnTest.test_showwarningsc C s"