File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
python/test/unit/language Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 77import triton .language as tl
88from triton .compiler .errors import CompilationError , CompileTimeAssertionFailure
99import traceback
10- import platform
1110
1211
1312def is_interpreter ():
@@ -155,8 +154,7 @@ def kernel():
155154 try :
156155 inner = e .value .__cause__
157156 outer = e .value
158- target = "\\ core.py" if platform .system () == 'Windows' else "/core.py"
159- assert target in '\n ' .join (traceback .format_tb (inner .__traceback__ )), "error should point inside core.py"
157+ assert os .path .sep + "core.py" in '\n ' .join (traceback .format_tb (inner .__traceback__ )), "error should point inside core.py"
160158
161159 assert "at 2:4:" in str (outer ), "error should point to expand_dims call"
162160 assert "<source unavailable>" not in str (outer )
You can’t perform that action at this time.
0 commit comments