We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b196878 commit 7aeee85Copy full SHA for 7aeee85
pandas/tools/tests/test_util.py
@@ -57,6 +57,15 @@ def test_invalid_input(self):
57
msg = "Input must be a list-like of list-likes"
58
for X in invalid_inputs:
59
tm.assertRaisesRegexp(TypeError, msg, cartesian_product, X=X)
60
+
61
+ def test_large_input(self):
62
+ # test failure of large inputs on windows OS
63
+ X = np.arange(65536)
64
+ Y = np.arange(65535)
65
+ result1, result2 = cartesian_product([X, Y])
66
+ expected1, expected2 = np.asarray(list(pd.compat.product(X, Y))).T
67
+ tm.assert_numpy_array_equal(result1, expected1)
68
+ tm.assert_numpy_array_equal(result2, expected2)
69
70
71
class TestLocaleUtils(tm.TestCase):
0 commit comments