Skip to content

Commit

Permalink
Skip test with Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffLIrion committed Jan 20, 2022
1 parent d105292 commit 6cbdba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_constants.py
Expand Up @@ -171,6 +171,7 @@ def test_constants(self):
# CMD_WAKE_LOCK_SIZE
self.assertEqual(constants.CMD_WAKE_LOCK_SIZE, r"dumpsys power | grep Locks | grep 'size='")

@unittest.skipIf(sys.version_info.major == 2, "Test requires Python 3")
def test_no_underscores(self):
"""Test that 'ANDROID_TV', 'BASE_TV', and 'FIRE_TV' do not appear in the code base."""
cwd = os.path.join(os.path.dirname(__file__), "..")
Expand Down

0 comments on commit 6cbdba8

Please sign in to comment.