def test_delete(self, space, tmpdir):
        d = tmpdir.mkdir("sub")
        space.execute("Dir.delete('%s')" % d)
        assert not tmpdir.listdir()
        d = tmpdir.mkdir("sub")
        f = d.join("content")
        f.write("hello")
        with self.raises(space, "Errno::ENOTEMPTY"):
            space.execute(d % "Dir.delete('%s')")
dataset/ETHPy150Open topazproject/topaz/tests/objects/test_dirobject.py/TestDir.test_delete/swapped operands of `%`