test.support.os_helper.create_empty_file(filename)

Create an empty file with filename. If it already exists, truncate it.

Related Reading

test — Regression tests package for Python