def test_new(self, space, tmpdir):
        d = tmpdir.mkdir("sub")
        f = d.join("content")
        f.write("hello")
        space.execute("Dir.new('%s')" % d)
        with self.raises(space, "Errno::ENOENT"):
            space.execute("Dir.new('this does not exist')")
        with self.raises(space, "Errno::ENOTDIR"):
            space.execute(f % "Dir.new('%s')")
dataset/ETHPy150Open topazproject/topaz/tests/objects/test_dirobject.py/TestDir.test_new/swapped operands of `%`