Delete Python 2 embedded launcher test.

There are no remaining Python 2 binaries using an embedded
launcher in Android.

Bug: 245854393
Test: m par_test py2-cmd py3-cmd && build/soong/python/tests/runtest.sh
Change-Id: I241bbaa417060b51b4d2883011ccb43e22ace4c8
This commit is contained in:
Krzysztof Kosiński
2022-09-20 02:16:33 +00:00
parent acb7f7a7ce
commit ebb25bd22e
5 changed files with 3 additions and 38 deletions

View File

@@ -33,11 +33,7 @@ if fileName.endswith('.pyc'):
fileName = fileName[:-1]
assert_equal("__file__", fileName, os.path.join(archive, "testpkg/par_test.py"))
# Python3 is returning None here for me, and I haven't found any problems caused by this.
if sys.version_info[0] == 2:
assert_equal("__package__", __package__, "testpkg")
else:
assert_equal("__package__", __package__, None)
assert_equal("__package__", __package__, "testpkg")
assert_equal("__loader__.archive", __loader__.archive, archive)
assert_equal("__loader__.prefix", __loader__.prefix, "testpkg/")