Message 271291 - Python tracker
The test is already skipped by the patch, for Android API level < 23, with the statement:
raise unittest.SkipTest("need working 'id -G'")
Do you mean that the test should be skipped instead more explicitly with something like:
skiIf(support.android_api_level < 23, "-G option of id -G is ignored by Android")