File tree 3 files changed +10
-3
lines changed
3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ pandas 0.13
62
62
- Fixed an issue where ``DataFrame.sum `` was slower than ``DataFrame.mean ``
63
63
for integer valued frames (:issue: `4365 `)
64
64
- ``read_html `` tests now work with Python 2.6 (:issue: `4351 `)
65
+ - Fixed bug where ``network `` testing was throwing ``NameError `` because a
66
+ local variable was undefined (:issue: `4381 `)
65
67
66
68
pandas 0.12
67
69
===========
Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ Bug Fixes
43
43
44
44
- ``read_html`` tests now work with Python 2.6 (:issue:`4351`)
45
45
46
+ - Fixed bug where ``network`` testing was throwing ``NameError`` because a
47
+ local variable was undefined (:issue:`4381`)
48
+
46
49
See the :ref:`full release notes
47
50
<release>` or issue tracker
48
51
on GitHub for a complete list.
Original file line number Diff line number Diff line change 12
12
13
13
from datetime import datetime
14
14
from functools import wraps
15
- from contextlib import contextmanager , closing
15
+ from contextlib import contextmanager
16
16
from httplib import HTTPException
17
17
from urllib2 import urlopen
18
18
from distutils .version import LooseVersion
31
31
from pandas .tseries .index import DatetimeIndex
32
32
from pandas .tseries .period import PeriodIndex
33
33
34
- from pandas .io .common import urlopen
35
-
36
34
Index = index .Index
37
35
MultiIndex = index .MultiIndex
38
36
Series = series .Series
@@ -767,6 +765,8 @@ def network_wrapper(*args, **kwargs):
767
765
if raise_on_error :
768
766
return t (* args , ** kwargs )
769
767
else :
768
+ runs = 0
769
+
770
770
for _ in range (num_runs ):
771
771
try :
772
772
try :
@@ -781,6 +781,8 @@ def network_wrapper(*args, **kwargs):
781
781
else :
782
782
raise
783
783
784
+ runs += 1
785
+
784
786
return network_wrapper
785
787
786
788
You can’t perform that action at this time.
0 commit comments