fix bin-file test in ipython3