![]() Server : LiteSpeed System : Linux premium84.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 : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/ |
��Yf� � @ s� d Z d d l Z d d l m Z d d l Z e j Z d e j k Z d d l m Z d d l m Z d Z e d Z Gd d � d e j � Z Gd d � d e j � Z e d k r� e j d d d d � d S)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). � N)�captured_stderrZidle)�run)�PyShellzf Warning (from warnings module): File "test_warning.py", line 99 Line of code UserWarning: Test z>>> c @ s: e Z d Z e j e d � d d � � Z d d � Z d S)�RunWarnTestz#Does not work when run within Idle.c C sZ | j t j t � t j d � | j t j t j � t j d � | j t j t � d S)NTF)�assertIs�warnings�showwarningr �capture_warnings�idle_showwarning_subproc)�self� r �C/opt/alt/python35/lib64/python3.5/idlelib/idle_test/test_warning.py�test_showwarnings"