Server IP : 192.158.238.246 / Your IP : 3.145.38.251 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python35/lib64/python3.5/idlelib/idle_test/__pycache__/ |
Upload File : |
��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"