statsmodels/statsmodels — Issue #152: python 3.2 errors on plot close in tests
Author: josef-pkt
Created: 2012-02-29 00:51:55+00:00
State: open

plt.close(fig) in the graphics tests raises an error, python 3.2, matplotlib 1.2.x from Gohlke for Win 64, nose 1.0.0

I don't know if this is a matplotlib bug or we need to change plot tests.

```
======================================================================
ERROR: Test violinplot and beanplot with the same dataset.
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\programs\python32\lib\site-packages\nose-1.0.0-py3.2.egg\nose\case.py", line 188, in runTest
self.test(*self.arg)
File "C:\Programs\Python32\lib\site-packages\numpy\testing\decorators.py", line 147, in skipper_func
return f(*args, **kwargs)
File "C:\Programs\Python32\lib\site-packages\scikits.statsmodels-0.4.0-py3.2.egg\scikits\statsmodels\graphics\tests\test_boxplots.py", line 33, in test_violinplot_beanplot
plt.close(fig)
File "C:\Programs\Python32\lib\site-packages\matplotlib\pyplot.py", line 433, in close
_pylab_helpers.Gcf.destroy_fig(arg)
File "C:\Programs\Python32\lib\site-packages\matplotlib\_pylab_helpers.py", line 75, in destroy_fig
for manager in Gcf.figs.values():
RuntimeError: dictionary changed size during iteration
```