Files
cpython/Lib/test/test_os/utils.py
Victor Stinner 0158890005 gh-139322: Create test_os package (#139453)
* Move test_posix.py and test_os.py to Lib/test/test_os/.
* Split Windows specific test cases to a new test_windows.py file.
2025-10-01 16:42:45 +02:00

4 lines
113 B
Python

def create_file(filename, content=b'content'):
with open(filename, "xb", 0) as fp:
fp.write(content)