def test_unclosed_task(self):
task = nidaqmx.Task()
# Since __del__ is not guaranteed to be called, for the purposes of
# consistent test results call __del__ manually.
with pytest.warns(DaqResourceWarning):
task.__del__()
评论列表
文章目录