Avoid use of os.mknod() in Python testing for portability #2986
Labels
bfb
bit-for-bit
test: python
Pass clm_pymods test suite plus Python sys/unit tests before merging
testing
additions or changes to tests
Milestone
It doesn't work everywhere; e.g., on my Mac. Instead, use the safer
os.makedirs()
for making empty directories orpathlib.Path.touch()
for empty files.Unit tests failing on my Mac because of this:
test_append_user_nl_step2
: PermissionError atos.mknod(ufile)
test_run_phase
: PermissionError inSSPCaseFake.create_clone()
atos.mknod(os.path.join(newcase, "user_nl_clm"))
The text was updated successfully, but these errors were encountered: