Skip to content

Commit

Permalink
BENCH: fix benchmark suite importability on Numpy<1.17
Browse files Browse the repository at this point in the history
  • Loading branch information
pv committed May 30, 2019
1 parent ec3cb9d commit 5af6880
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion benchmarks/benchmarks/bench_random.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@

import numpy as np

from numpy.random import RandomState, Generator
from numpy.random import RandomState

try:
from numpy.random import Generator
except ImportError:
pass


class Random(Benchmark):
params = ['normal', 'uniform', 'weibull 1', 'binomial 10 0.5',
Expand Down

0 comments on commit 5af6880

Please sign in to comment.