1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-14 08:16:15 +01:00
github.com_openSUSE_osc/tests
Michal Vyskocil b787ca2b39 python3 compatibility: make all unit test pass
There are many places can't be covered by 2to3, especially the
str/unicode -> str/bytes change done in python3. This is a big patch
incorporating all changes made in order to make python3 suite.py run
without any single failure.

It

 * adapt the introspect_handler_3 for case there are no __defaults__
 * adds the ET_ENCODING variable for ET.fromstring ("unicode" in py3,
  "utf-8" in py2)
 * (re)adds various builtins to both python versions
    - memoryview to python 2.6
    - bytes compatible with py3 to 2.6 and 2.7

and it changes few parts of tests/common.py in order to be compatible
with python3

 * new urlcompare method compares all components or url + parsed query
   string in a dictionary, so the ordering, neither quoting does not matter
 * bytes builtin has been added to 2.x and used in assertEqualMultiline
2013-04-16 10:51:42 +02:00
..
addfile_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
commit_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
deletefile_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
difffile_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
init_package_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
init_project_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
prdiff_fixtures - add prdiff subcommand and test suite 2013-01-18 22:38:21 +00:00
project_package_status_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
repairwc_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
request_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
revertfile_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
setlinkrev_fixtures - adjusted testsuite for the latest setlinkrev changes 2011-03-21 16:53:48 +01:00
update_fixtures - adjusted testcase oscrc's for recent config changes 2011-02-11 12:44:48 +01:00
common.py python3 compatibility: make all unit test pass 2013-04-16 10:51:42 +02:00
osc - initial testcases for the new update mechanism 2010-08-31 13:30:35 +02:00
suite.py - add prdiff subcommand and test suite 2013-01-18 22:38:21 +00:00
test_addfiles.py - removed unused imports 2010-12-19 20:32:06 +01:00
test_commit.py - follow changes during commit in test cases 2011-06-07 16:33:08 +02:00
test_deletefiles.py - test_deletefiles.py: new testcases for skipped files 2011-01-17 14:59:46 +01:00
test_difffiles.py - refactor assertEqualMultiline into common.py for reuse 2013-01-18 22:38:21 +00: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 python3 compatibility: fix all tests 2013-04-16 10:51:42 +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 python3 compatibility: fix all tests 2013-04-16 10:51:42 +02:00
test_request.py Fix tests/test_request.py, requests seem to have a trainling newline now 2011-08-18 16:02:34 +02:00
test_revertfiles.py - removed unused imports 2010-12-19 20:32:06 +01:00
test_setlinkrev.py python3 compatibility: fix all tests 2013-04-16 10:51:42 +02:00
test_update.py - cleanup working copies... 2010-09-08 16:18:35 +02:00