diff --git a/pyopencl/tools.py b/pyopencl/tools.py index d974980b8a17381e82994a84bd1860b93ef0ca98..6a72ee9796d8b728d3bc919633a1da27a891c584 100644 --- a/pyopencl/tools.py +++ b/pyopencl/tools.py @@ -242,7 +242,10 @@ def pytest_generate_tests_for_pyopencl(metafunc): return cl.Context([self.device]) def __str__(self): - return "" % self.device + # Don't show address, so that parallel test collection works + return ("" % + (self.device.name.strip(), + self.device.platform.name.strip())) test_plat_and_dev = get_test_platforms_and_devices()