repro.testing#

class repro.testing.DockerTestContextManager(image)#
repro.testing.assert_dicts_approx_equal(d1, d2, rel=None, abs=None)#
repro.testing.get_testing_device_parameters(gpu_only=False)#

Gets the list of device parameters to use for unittesting based on the value of the TEST_DEVICES environment variable. If gpu_only is True, the CPU will not be returned.