Skip to content

Commit 5023fc7

Browse files
author
Nicholas Ver Halen
committed
Changed the test to work with python 3.x
1 parent 9ccc991 commit 5023fc7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/tools/tests/test_util.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ def test_downcast(self):
409409
'int64': [np.iinfo(np.int64).min, np.iinfo(np.int64).max]
410410
}
411411

412-
for dtype, min_max in integer_dtype_min_max.iteritems():
412+
for dtype, min_max in integer_dtype_min_max.items():
413413
series = pd.to_numeric(pd.Series(min_max), downcast = 'integer')
414414
tm.assert_equal(series.dtype, dtype)
415415

@@ -421,7 +421,7 @@ def test_downcast(self):
421421
# 'uint64': [np.iinfo(np.uint64).min, np.iinfo(np.uint64).max]
422422
}
423423

424-
for dtype, min_max in unsigned_dtype_min_max.iteritems():
424+
for dtype, min_max in unsigned_dtype_min_max.items():
425425
series = pd.to_numeric(pd.Series(min_max), downcast = 'unsigned')
426426
tm.assert_equal(series.dtype, dtype)
427427

@@ -433,7 +433,7 @@ def test_downcast(self):
433433
'int64': [np.iinfo(np.int32).min, np.iinfo(np.int32).max + 1],
434434
}
435435

436-
for dtype, min_max in integer_dtype_min_max_plus.iteritems():
436+
for dtype, min_max in integer_dtype_min_max_plus.items():
437437
series = pd.to_numeric(pd.Series(min_max), downcast = 'integer')
438438
tm.assert_equal(series.dtype, dtype)
439439

@@ -443,7 +443,7 @@ def test_downcast(self):
443443
'int64': [np.iinfo(np.int32).min - 1, np.iinfo(np.int64).max]
444444
}
445445

446-
for dtype, min_max in integer_dtype_min_max_minus.iteritems():
446+
for dtype, min_max in integer_dtype_min_max_minus.items():
447447
series = pd.to_numeric(pd.Series(min_max), downcast = 'integer')
448448
tm.assert_equal(series.dtype, dtype)
449449

@@ -453,7 +453,7 @@ def test_downcast(self):
453453
# 'uint64': [np.iinfo(np.uint32).min, np.iinfo(np.uint32).max + 1],
454454
}
455455

456-
for dtype, min_max in unsigned_dtype_min_max_plus.iteritems():
456+
for dtype, min_max in unsigned_dtype_min_max_plus.items():
457457
series = pd.to_numeric(pd.Series(min_max), downcast = 'unsigned')
458458
tm.assert_equal(series.dtype, dtype)
459459

0 commit comments

Comments
 (0)