1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 16:56:15 +01:00
github.com_openSUSE_osc/tests
Adam Williamson 13a13a87c4 Fix ElementTree imports for Python 3.9
Importing `cElementTree` has been deprecated since Python 3.3 -
importing `ElementTree` automatically uses the fastest
implementation available - and is finally removed in Python 3.9.
Importing cElementTree directly (not as part of xml) is an even
older relic, it's for Ye Time Before ElementTree Was Added To
Python and it was instead an external module...which was before
Python 2.5.

We still need to work with Python 2.7 for now, so we use a try/
except to handle both 2.7 and 3.9 cases. Also, let's not repeat
this import 12 times in one file for some reason.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2020-06-02 15:13:10 -07:00
..
addfile_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
commit_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
conf_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
deletefile_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
difffile_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
init_package_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
init_project_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
prdiff_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
project_package_status_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
repairwc_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
request_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
results_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
revertfile_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
setlinkrev_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
update_fixtures Make check_for_request_on_action on per default. 2019-10-10 18:02:20 +02:00
common.py Fix ElementTree imports for Python 3.9 2020-06-02 15:13:10 -07:00
osc - initial testcases for the new update mechanism 2010-08-31 13:30:35 +02:00
suite.py Remove passx encode/decode functions from conf.py 2019-08-29 15:06:48 +02:00
test_addfiles.py - removed unused imports 2010-12-19 20:32:06 +01:00
test_commit.py Fix ElementTree imports for Python 3.9 2020-06-02 15:13:10 -07:00
test_deletefiles.py - test_deletefiles.py: new testcases for skipped files 2011-01-17 14:59:46 +01:00
test_difffiles.py switch to difflib.diff_bytes in python3 case. 2019-07-24 13:48:39 +02:00
test_helpers.py add helper functions for python3 support 2018-11-08 09:55:07 +01:00
test_init_package.py - removed unused imports 2010-12-19 20:32:06 +01:00
test_init_project.py - Project.init_project: return Project object 2010-12-23 02:15:58 +01:00
test_package_status.py - added new testcases in order to test the status methods for projects and packages 2010-12-22 23:12:24 +01:00
test_prdiff.py cleanup xpath. submit/* is ignored by the API since 2012 2018-08-07 11:53:49 +02:00
test_project_status.py - added new testcases in order to test the status methods for projects and packages 2010-12-22 23:12:24 +01:00
test_repairwc.py Fix ElementTree imports for Python 3.9 2020-06-02 15:13:10 -07:00
test_request.py Fix ElementTree imports for Python 3.9 2020-06-02 15:13:10 -07:00
test_results.py Add --watch for osc prjresults --xml 2018-11-06 15:13:08 +01:00
test_revertfiles.py - removed unused imports 2010-12-19 20:32:06 +01:00
test_setlinkrev.py - follow in test suite the old/new setlinkrev behaviour 2014-05-16 11:58:36 +02:00
test_update.py fix checkout of meta files 2019-09-16 14:01:35 +02:00