Skip to content

Commit 12a3dca

Browse files
author
Nicholas Ver Halen
committed
Added a test to make sure numpy is new enough.
1 parent 3b92855 commit 12a3dca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tools/tests/test_util.py

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import locale
33
import codecs
44
import nose
5+
from distutils.version import LooseVersion
56

67
import numpy as np
78
from numpy import (iinfo, int8, int16, int32, int64,
@@ -405,6 +406,10 @@ def test_downcast(self):
405406

406407
def test_downcast_limits(self):
407408
# Test the limits of each downcast. Bug: #14401.
409+
# Check to make sure numpy is new enough to run this test.
410+
if LooseVersion(np.__version__) <= LooseVersion('1.8.2'):
411+
return
412+
408413
i = 'integer'
409414
u = 'unsigned'
410415
dtype_downcast_min_max = [

0 commit comments

Comments
 (0)