Format: application/x-python-code
⬇ Download File (1.2 KB)
   1  o
   2  
   3  ��h��@sbdZddlmZedkr/e�Zdejvrgejd<dZdd�ZejdZe�	e�dd	�Z
   4  d
   5  Sd
   6  S)aSMinimal script to reproduce our nasty reference counting bug.
   7  
   8  The problem is related to https://github.com/ipython/ipython/issues/141
   9  
  10  The original fix for that appeared to work, but John D. Hunter found a
  11  matplotlib example which, when run twice in a row, would break.  The problem
  12  were references held by open figures to internals of Tkinter.
  13  
  14  This code reproduces the problem that John saw, without matplotlib.
  15  
  16  This script is meant to be called by other parts of the test suite that call it
  17  via %run as if it were executed interactively by the user. As of 2011-05-29,
  18  test_run.py calls it.
  19  �)�get_ipython�__main__Z
  20  _refbug_cacheZHellocCstS)N)�aglobal�rr�Oc:\Users\shubh\Videos\agent\nova\Lib\site-packages\IPython/core/tests/refbug.py�f&srcCstD]
  21  }td|����qdS)Nzlowercased:)�cache�print�lower)�funcrrr�call_f,s�rN)�__doc__ZIPythonr�__name__�ipZuser_nsrrr�appendrrrrr�<module>s	
  22  
  23  
  24  
  25  �