google / mobly

E2E test framework for tests with complex environment requirements.
https://github.com/google/mobly
Apache License 2.0
636 stars 177 forks source link

Use errno instead of os.errno in utils.create_dir #667

Closed xianyuanjia closed 4 years ago

xianyuanjia commented 4 years ago

os.errno is no longer supported in Python 3.7+, resulting in attribute errors during exception handling in utils.create_dir. Replacing this with the builtin errno module would ensure compatibility with all supported Python versions (3.4.1+).


This change is Reviewable