Skip to content

Commit 0628bc5

Browse files
Removed use of np.compat
1 parent 7d7fdbd commit 0628bc5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mkl_random/tests/test_random.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
from numpy.testing import (
3232
assert_, assert_raises, assert_equal,
3333
assert_warns, suppress_warnings)
34-
from numpy.compat import asbytes
3534
import sys
3635
import warnings
3736

@@ -500,7 +499,7 @@ def test_choice_return_shape():
500499
def test_randomdist_bytes(randomdist):
501500
rnd.seed(randomdist.seed, brng=randomdist.brng)
502501
actual = rnd.bytes(10)
503-
desired = asbytes('\xa4\xde\xde{\xb4\x88\xe6\x84*2')
502+
desired = b'\xa4\xde\xde{\xb4\x88\xe6\x84*2'
504503
np.testing.assert_equal(actual, desired)
505504

506505

mkl_random/tests/test_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
from numpy.testing import (TestCase, assert_,
2929
assert_array_equal, assert_raises)
3030
import mkl_random as rnd
31-
from numpy.compat import long
3231
import numpy as np
32+
from numpy import long
3333

3434
import pytest
3535
import gc

0 commit comments

Comments
 (0)