diff options
| author | 2022-09-20 02:16:33 +0000 | |
|---|---|---|
| committer | 2023-05-04 17:52:12 +0000 | |
| commit | ebb25bd22e87df67006f07d116d3bfc43c91866d (patch) | |
| tree | 9fb95c479f74b02d23c31d2c109664d857809c88 /python/tests/testpkg | |
| parent | acb7f7a7ce75c9b9ee82f715468f7ad90cdba23c (diff) | |
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
Diffstat (limited to 'python/tests/testpkg')
| -rw-r--r-- | python/tests/testpkg/par_test.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/python/tests/testpkg/par_test.py b/python/tests/testpkg/par_test.py index b51340907..e12c527ad 100644 --- a/python/tests/testpkg/par_test.py +++ b/python/tests/testpkg/par_test.py @@ -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/") |