Skip to content

Commit be7050d

Browse files
authored
Fixed maximum recursion issue of test_linalg.py (#2713)
test_linalg.py tests fail with the following due to missing IFU from commit pytorch@cd949d1 Traceback (most recent call last): File "/var/lib/jenkins/pytorch/test/test_linalg.py", line 112, in setUp super(self.__class__, self).setUp() File "/var/lib/jenkins/pytorch/test/test_linalg.py", line 112, in setUp super(self.__class__, self).setUp() File "/var/lib/jenkins/pytorch/test/test_linalg.py", line 112, in setUp super(self.__class__, self).setUp() [Previous line repeated 982 more times] RecursionError: maximum recursion depth exceeded
1 parent 88d78d1 commit be7050d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_linalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ def get_tunableop_untuned_filename():
109109

110110
class TestLinalg(TestCase):
111111
def setUp(self):
112-
super(self.__class__, self).setUp()
112+
super().setUp()
113113
torch.backends.cuda.matmul.allow_tf32 = False
114114

115115
def tearDown(self):
116116
torch.backends.cuda.matmul.allow_tf32 = True
117-
super(self.__class__, self).tearDown()
117+
super().tearDown()
118118

119119
@contextlib.contextmanager
120120
def _tunableop_ctx(self):

0 commit comments

Comments
 (0)