google / mobly

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

Drop Python 2 compatibility #679

Closed eric100lin closed 3 years ago

eric100lin commented 4 years ago

Python 2 is no longer supported, let's only run unit tests in py3. https://pythonclock.org/

  1. Drop py2 in Travis CI
  2. Drop Python 2 compatibility and fix import order in mobly/utils.py.
  3. Drop Python 2 compatibility in mobly/controllers/android_device.py.
  4. Drop Python 2 compatibility and fix import order in mobly/controllers/android_device_lib/adb.py.
  5. Remove unused import of past.builtins.basestring in mobly/controllers/monsoon.py.
  6. Remove Python 2 workarounds in mobly/asserts.py.

This change is Reviewable

xpconanfan commented 3 years ago

Let's remove those in a separate PR