areusch commented on a change in pull request #8955:
URL: https://github.com/apache/tvm/pull/8955#discussion_r708675315



##########
File path: tests/python/unittest/test_target_codegen_hexagon.py
##########
@@ -26,8 +26,10 @@
 import tvm.contrib.hexagon as hexagon
 
 
-# Register a phony linker, so that we can test codegen without a Hexagon 
toolchain.
-hexagon.register_linker(lambda: "/bin/true")
[email protected](scope="session", autouse=True)
+def register_linker():
+    # Register a phony linker, so that we can test codegen without a Hexagon 
toolchain.
+    hexagon.register_linker(lambda: "/bin/true")

Review comment:
       yes, it would be great if we can set the global func back the way it was 
before this test ran. i would like to avoid any leftover state after we switch 
to xdist as the exact ordering between tests will become less clear PR-to-PR.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to