1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 18:06:13 +01:00
github.com_openSUSE_osc/osc
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
..
util python3 compatibility: print function 2013-04-16 10:51:41 +02:00
__init__.py add vim mode lines to avoid evil tab characters :-) 2010-02-25 09:53:45 +01:00
.gitignore convert svn:ignore to gitignore 2009-12-03 19:19:53 +01:00
babysitter.py python3 compatibility: urllib 2013-04-16 10:51:42 +02:00
build.py python3 compatibility: urllib 2013-04-16 10:51:42 +02:00
checker.py python3 compatibility: print function 2013-04-16 10:51:41 +02:00
cmdln.py python3 compatibility: make all unit test pass 2013-04-16 10:51:42 +02:00
commandline.py python3 compatibility: make all unit test pass 2013-04-16 10:51:42 +02:00
conf.py python3 compatibility: urllib 2013-04-16 10:51:42 +02:00
core.py python3 compatibility: make all unit test pass 2013-04-16 10:51:42 +02:00
fetch.py python3 compatibility: urllib 2013-04-16 10:51:42 +02:00
meter.py python3 compatibility: print function 2013-04-16 10:51:41 +02:00
OscConfigParser.py python3 compatibility: print function 2013-04-16 10:51:41 +02:00
oscerr.py - handle errors of source service runs 2011-05-24 10:49:08 +02:00
oscssl.py python3 compatibility: urllib 2013-04-16 10:51:42 +02:00
oscsslexcp.py - remove shebang line to make rpmlint happy 2010-03-21 22:57:06 +01:00