Skip to content

Commit b501f30

Browse files
MGAMZHAOCHENYE
authored andcommitted
[Fix] Fix removed in pytest
1 parent aede826 commit b501f30

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/test_config/test_lazy.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from unittest import TestCase
99

1010
import numpy
11-
import numpy.compat
11+
import numpy.fft
1212
import numpy.linalg as linalg
1313
from rich.progress import Progress
1414

@@ -56,17 +56,17 @@ def test_lazy_module(self):
5656

5757
# 1.2 getattr as LazyAttr
5858
self.assertIsInstance(lazy_numpy.linalg, LazyAttr)
59-
self.assertIsInstance(lazy_numpy.compat, LazyAttr)
59+
self.assertIsInstance(lazy_numpy.fft, LazyAttr)
6060

61-
# 1.3 Build module from LazyObject. amp and functional can be accessed
61+
# 1.3 Build module from LazyObject. linalg and fft can be accessed
6262
imported_numpy = lazy_numpy.build()
6363
self.assertIs(imported_numpy.linalg, linalg)
64-
self.assertIs(imported_numpy.compat, numpy.compat)
64+
self.assertIs(imported_numpy.fft, numpy.fft)
6565

6666
# 1.4.1 Build module from LazyAttr
6767
imported_linalg = lazy_numpy.linalg.build()
68-
imported_compat = lazy_numpy.compat.build()
69-
self.assertIs(imported_compat, numpy.compat)
68+
imported_fft = lazy_numpy.fft.build()
69+
self.assertIs(imported_fft, numpy.fft)
7070
self.assertIs(imported_linalg, linalg)
7171

7272
# 1.4.2 build class method from LazyAttr

0 commit comments

Comments
 (0)