File tree 1 file changed +1
-7
lines changed
1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change 9
9
DataFrame ,
10
10
DatetimeIndex ,
11
11
Series ,
12
- __file__ as pd_file ,
13
12
date_range ,
14
13
)
15
14
@@ -113,11 +112,6 @@ class BackendLoading:
113
112
114
113
def setup (self ):
115
114
dist = pkg_resources .get_distribution ("pandas" )
116
- if dist .module_path not in pd_file :
117
- # We are running from a non-installed pandas, and this benchmark is
118
- # invalid
119
- raise NotImplementedError ("Testing a non-installed pandas" )
120
-
121
115
spec = importlib .machinery .ModuleSpec ("my_backend" , None )
122
116
mod = importlib .util .module_from_spec (spec )
123
117
mod .plot = lambda * args , ** kwargs : 1
@@ -127,7 +121,7 @@ def setup(self):
127
121
"pandas_plotting_backend" , mod .__name__ , dist = dist
128
122
)
129
123
backends ["pandas_plotting_backends" ][mod .__name__ ] = my_entrypoint
130
- for i in range (1000 ):
124
+ for i in range (10 ):
131
125
backends ["pandas_plotting_backends" ][str (i )] = my_entrypoint
132
126
sys .modules ["my_backend" ] = mod
133
127
You can’t perform that action at this time.
0 commit comments