Skip to content

Commit 218cba6

Browse files
committed
Merge pull request #11824 from jreback/wfix
TST: avoid int conversions on windows, xref #11816
2 parents 29b17f4 + 6a5fe65 commit 218cba6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tseries/tests/test_tslib.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -390,13 +390,13 @@ def test_today(self):
390390

391391
def test_asm8(self):
392392
np.random.seed(7960929)
393-
ns = np.random.randint(
393+
ns = [
394394
Timestamp.min.value,
395395
Timestamp.max.value,
396396
1000,
397-
)
397+
]
398398
for n in ns:
399-
self.assertEqual(Timestamp(n).asm8, np.datetime64(int(n), 'ns'), n)
399+
self.assertEqual(Timestamp(n).asm8, np.datetime64(n, 'ns'), n)
400400
self.assertEqual(Timestamp('nat').asm8, np.datetime64('nat', 'ns'))
401401

402402
def test_fields(self):

0 commit comments

Comments
 (0)