diff --git a/wrolpi/files/test/test_lib.py b/wrolpi/files/test/test_lib.py index 61263d93..27301c02 100644 --- a/wrolpi/files/test/test_lib.py +++ b/wrolpi/files/test/test_lib.py @@ -1070,5 +1070,5 @@ def test_replace_file(test_directory): with pytest.raises(FileNotFoundError): lib.replace_file('does not exist', 'foo') - # Non-existent file can be overwritten. - lib.replace_file('does not exist', 'foo', missing_ok=True) + # Non-existent file can be created. + lib.replace_file(test_directory / 'will now exist', 'foo', missing_ok=True)