This test occasionally fails on GreenDragon. When the directory already exists and we enter the exception block, the `os.errno` symbol is not found because it was deprecated in Python 3.7. Instead, replace `os.mkdir` with `os.makedirs` because it can handle a directory already existing.