@pytest.mark.skipif("not bokeh")
def test_saves_file():
    with tmpfile('html') as fn:
        with prof:
            get(dsk, 'e')
        # Run just to see that it doesn't error
        prof.visualize(show=False, file_path=fn)

        assert os.path.exists(fn)
        with open(fn) as f:
            assert f.read().lower() in 'html'
dataset/ETHPy150Open dask/dask/dask/diagnostics/tests/test_profiler.py/test_saves_file/swapped operands of `in`