Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 409064 Details for
Bug 557832
=dev-python/configobj-5.0.5 fails tests on sys-libs/uclibc
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
build.log
build.log (text/plain), 33.59 KB, created by
René Rhéaume
on 2015-08-15 11:35:12 UTC
(
hide
)
Description:
build.log
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2015-08-15 11:35:12 UTC
Size:
33.59 KB
patch
obsolete
> * Package: dev-python/configobj-5.0.5 > * Repository: gentoo > * Maintainer: python@gentoo.org > * USE: abi_x86_64 amd64 elibc_uclibc kernel_linux python_targets_python2_7 python_targets_python3_4 userland_GNU > * FEATURES: fakeroot preserve-libs sandbox splitdebug test userpriv usersandbox >>>> Unpacking source... >>>> Unpacking configobj-5.0.5.tar.gz to /var/tmp/portage/dev-python/configobj-5.0.5/work >>>> Source unpacked in /var/tmp/portage/dev-python/configobj-5.0.5/work >Unable to unshare: EINVAL >>>> Preparing source in /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5 ... >>>> Source prepared. >Unable to unshare: EINVAL >>>> Configuring source in /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5 ... >/var/tmp/portage/dev-python/configobj-5.0.5/temp/environment: line 2896: locale: command not found >/var/tmp/portage/dev-python/configobj-5.0.5/temp/environment: line 2902: locale: command not found >/var/tmp/portage/dev-python/configobj-5.0.5/temp/environment: line 2905: warning: setlocale: LC_CTYPE: cannot change locale (fr_CA) > * Could not find a UTF-8 locale. This may trigger build failures in > * some python packages. Please ensure that a UTF-8 locale is listed in > * /etc/locale.gen and run locale-gen. >>>> Source configured. >Unable to unshare: EINVAL >>>> Compiling source in /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5 ... > * python3_4: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python3.4 setup.py build >running build >running build_py >creating /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5-python3_4/lib >copying configobj.py -> /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5-python3_4/lib >copying validate.py -> /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5-python3_4/lib >/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'install_requires' > warnings.warn(msg) >warning: build_py: byte-compiling is disabled, skipping. > > * python2_7: running distutils-r1_run_phase distutils-r1_python_compile >/usr/bin/python2.7 setup.py build >/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires' > warnings.warn(msg) >running build >running build_py >creating /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5-python2_7/lib >copying configobj.py -> /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5-python2_7/lib >copying validate.py -> /var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5-python2_7/lib >warning: build_py: byte-compiling is disabled, skipping. > >>>> Source compiled. >Unable to unshare: EINVAL >>>> Test phase: dev-python/configobj-5.0.5 > * python3_4: running distutils-r1_run_phase python_test >Trying: > raise ValidateError >Expecting: > Traceback (most recent call last): > ValidateError >ok >Trying: > def int_range_check(value, min, max): > # turn min and max from strings to integers > min = int(min) > max = int(max) > # check that value is of the correct type. > # possible valid inputs are integers or strings > # that represent integers > if not isinstance(value, (int, long, string_type)): > raise VdtTypeError(value) > elif isinstance(value, string_type): > # if we are given a string > # attempt to convert to an integer > try: > value = int(value) > except ValueError: > raise VdtValueError(value) > # check the value is between our constraints > if not min <= value: > raise VdtValueTooSmallError(value) > if not value <= max: > raise VdtValueTooBigError(value) > return value >Expecting nothing >ok >Trying: > fdict = {'int_range': int_range_check} >Expecting nothing >ok >Trying: > vtr1 = Validator(fdict) >Expecting nothing >ok >Trying: > vtr1.check('int_range(20, 40)', '30') >Expecting: > 30 >ok >Trying: > vtr1.check('int_range(20, 40)', '60') >Expecting: > Traceback (most recent call last): > VdtValueTooBigError: the value "60" is too big. >ok >Trying: > vtr2 = Validator() >Expecting nothing >ok >Trying: > vtr2.functions['int_range'] = int_range_check >Expecting nothing >ok >Trying: > vtri = Validator() >Expecting nothing >ok >Trying: > vtor.check('', 0) >Expecting: > 0 >ok >Trying: > vtor.check('', '0') >Expecting: > '0' >ok >Trying: > vtor.check('yoda', '') >Expecting: > Traceback (most recent call last): > VdtUnknownCheckError: the check "yoda" is unknown. >ok >Trying: > vtor.check('yoda()', '') >Expecting: > Traceback (most recent call last): > VdtUnknownCheckError: the check "yoda" is unknown. >ok >Trying: > vtor.check('string(default="")', '', missing=True) >Expecting: > '' >ok >Trying: > raise VdtParamError('yoda', 'jedi') >Expecting: > Traceback (most recent call last): > VdtParamError: passed an incorrect value "jedi" for parameter "yoda". >ok >Trying: > raise VdtTypeError('jedi') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "jedi" is of the wrong type. >ok >Trying: > raise VdtUnknownCheckError('yoda') >Expecting: > Traceback (most recent call last): > VdtUnknownCheckError: the check "yoda" is unknown. >ok >Trying: > raise VdtValueError('jedi') >Expecting: > Traceback (most recent call last): > VdtValueError: the value "jedi" is unacceptable. >ok >Trying: > raise VdtValueTooBigError('1') >Expecting: > Traceback (most recent call last): > VdtValueTooBigError: the value "1" is too big. >ok >Trying: > raise VdtValueTooLongError('jedie') >Expecting: > Traceback (most recent call last): > VdtValueTooLongError: the value "jedie" is too long. >ok >Trying: > raise VdtValueTooShortError('jed') >Expecting: > Traceback (most recent call last): > VdtValueTooShortError: the value "jed" is too short. >ok >Trying: > raise VdtValueTooSmallError('0') >Expecting: > Traceback (most recent call last): > VdtValueTooSmallError: the value "0" is too small. >ok >Trying: > _is_num_param(('', ''), (0, 1.0)) >Expecting: > [0, 1] >ok >Trying: > _is_num_param(('', ''), (0, 1.0), to_float=True) >Expecting: > [0.0, 1.0] >ok >Trying: > _is_num_param(('a'), ('a')) >Expecting: > Traceback (most recent call last): > VdtParamError: passed an incorrect value "a" for parameter "a". >ok >Trying: > checks = [ > '3, 6, min=1, max=3, test=list(a, b, c)', > '3', > '3, 6', > '3,', > 'min=1, test="a b c"', > 'min=5, test="a, b, c"', > 'min=1, max=3, test="a, b, c"', > 'min=-100, test=-99', > 'min=1, max=3', > '3, 6, test="36"', > '3, 6, test="a, b, c"', > '3, max=3, test=list("a", "b", "c")', > '''3, max=3, test=list("'a'", 'b', "x=(c)")''', > "test='x=fish(3)'", > ] >Expecting nothing >ok >Trying: > v = Validator({'test': _test}) >Expecting nothing >ok >Trying: > for entry in checks: > pprint(v.check(('test(%s)' % entry), 3)) >Expecting: > (3, ('3', '6'), {'max': '3', 'min': '1', 'test': ['a', 'b', 'c']}) > (3, ('3',), {}) > (3, ('3', '6'), {}) > (3, ('3',), {}) > (3, (), {'min': '1', 'test': 'a b c'}) > (3, (), {'min': '5', 'test': 'a, b, c'}) > (3, (), {'max': '3', 'min': '1', 'test': 'a, b, c'}) > (3, (), {'min': '-100', 'test': '-99'}) > (3, (), {'max': '3', 'min': '1'}) > (3, ('3', '6'), {'test': '36'}) > (3, ('3', '6'), {'test': 'a, b, c'}) > (3, ('3',), {'max': '3', 'test': ['a', 'b', 'c']}) > (3, ('3',), {'max': '3', 'test': ["'a'", 'b', 'x=(c)']}) > (3, (), {'test': 'x=fish(3)'}) >ok >Trying: > v = Validator() >Expecting nothing >ok >Trying: > v.check('integer(default=6)', '3') >Expecting: > 3 >ok >Trying: > v.check('integer(default=6)', None, True) >Expecting: > 6 >ok >Trying: > v.get_default_value('integer(default=6)') >Expecting: > 6 >ok >Trying: > v.get_default_value('float(default=6)') >Expecting: > 6.0 >ok >Trying: > v.get_default_value('pass(default=None)') >Expecting nothing >ok >Trying: > v.get_default_value("string(default='None')") >Expecting: > 'None' >ok >Trying: > v.get_default_value('pass') >Expecting: > Traceback (most recent call last): > KeyError: 'Check "pass" has no default value.' >ok >Trying: > v.get_default_value('pass(default=list(1, 2, 3, 4))') >Expecting: > ['1', '2', '3', '4'] >ok >Trying: > v = Validator() >Expecting nothing >ok >Trying: > v.check("pass(default=None)", None, True) >Expecting nothing >ok >Trying: > v.check("pass(default='None')", None, True) >Expecting: > 'None' >ok >Trying: > v.check('pass(default="None")', None, True) >Expecting: > 'None' >ok >Trying: > v.check('pass(default=list(1, 2, 3, 4))', None, True) >Expecting: > ['1', '2', '3', '4'] >ok >Trying: > v = Validator() >Expecting nothing >ok >Trying: > v.check(unicode('string(min=4)'), unicode('test')) == unicode('test') >Expecting: > True >ok >Trying: > v = Validator() >Expecting nothing >ok >Trying: > v.get_default_value(unicode('string(min=4, default="1234")')) == unicode('1234') >Expecting: > True >ok >Trying: > v.check(unicode('string(min=4, default="1234")'), unicode('test')) == unicode('test') >Expecting: > True >ok >Trying: > v = Validator() >Expecting nothing >ok >Trying: > default = v.get_default_value('string(default=None)') >Expecting nothing >ok >Trying: > default == None >Expecting: > 1 >ok >Trying: > v = Validator() >Expecting nothing >ok >Trying: > v.get_default_value('string(default="#ff00dd")') >Expecting: > '#ff00dd' >ok >Trying: > v.get_default_value('integer(default=3) # comment') >Expecting: > 3 >ok >Trying: > vtor.check('string(default="")', '', missing=True) >Expecting: > '' >ok >Trying: > vtor.check('string(default="\n")', '', missing=True) >Expecting: > '\n' >ok >Trying: > print(vtor.check('string(default="\n")', '', missing=True)) >Expecting: > <BLANKLINE> > <BLANKLINE> >ok >Trying: > vtor.check('string()', '\n') >Expecting: > '\n' >ok >Trying: > vtor.check('string(default="\n\n\n")', '', missing=True) >Expecting: > '\n\n\n' >ok >Trying: > vtor.check('string()', 'random \n text goes here\n\n') >Expecting: > 'random \n text goes here\n\n' >ok >Trying: > vtor.check('string(default=" \nrandom text\ngoes \n here\n\n ")', > '', missing=True) >Expecting: > ' \nrandom text\ngoes \n here\n\n ' >ok >Trying: > vtor.check("string(default='\n\n\n')", '', missing=True) >Expecting: > '\n\n\n' >ok >Trying: > vtor.check("option('\n','a','b',default='\n')", '', missing=True) >Expecting: > '\n' >ok >Trying: > vtor.check("string_list()", ['foo', '\n', 'bar']) >Expecting: > ['foo', '\n', 'bar'] >ok >Trying: > vtor.check("string_list(default=list('\n'))", '', missing=True) >Expecting: > ['\n'] >ok >Trying: > int(dottedQuadToNum('1 ')) >Expecting: > 1 >********************************************************************** >File "validate.py", line 278, in __main__.dottedQuadToNum >Failed example: > int(dottedQuadToNum('1 ')) >Exception raised: > Traceback (most recent call last): > File "validate.py", line 298, in dottedQuadToNum > socket.inet_aton(ip.strip()))[0] > OSError: illegal IP address string passed to inet_aton > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.4/doctest.py", line 1324, in __run > compileflags, 1), test.globs) > File "<doctest __main__.dottedQuadToNum[0]>", line 1, in <module> > int(dottedQuadToNum('1 ')) > File "validate.py", line 300, in dottedQuadToNum > raise ValueError('Not a good dotted-quad IP: %s' % ip) > ValueError: Not a good dotted-quad IP: 1 >Trying: > int(dottedQuadToNum(' 1.2')) >Expecting: > 16777218 >********************************************************************** >File "validate.py", line 280, in __main__.dottedQuadToNum >Failed example: > int(dottedQuadToNum(' 1.2')) >Exception raised: > Traceback (most recent call last): > File "validate.py", line 298, in dottedQuadToNum > socket.inet_aton(ip.strip()))[0] > OSError: illegal IP address string passed to inet_aton > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.4/doctest.py", line 1324, in __run > compileflags, 1), test.globs) > File "<doctest __main__.dottedQuadToNum[1]>", line 1, in <module> > int(dottedQuadToNum(' 1.2')) > File "validate.py", line 300, in dottedQuadToNum > raise ValueError('Not a good dotted-quad IP: %s' % ip) > ValueError: Not a good dotted-quad IP: 1.2 >Trying: > int(dottedQuadToNum(' 1.2.3 ')) >Expecting: > 16908291 >********************************************************************** >File "validate.py", line 282, in __main__.dottedQuadToNum >Failed example: > int(dottedQuadToNum(' 1.2.3 ')) >Exception raised: > Traceback (most recent call last): > File "validate.py", line 298, in dottedQuadToNum > socket.inet_aton(ip.strip()))[0] > OSError: illegal IP address string passed to inet_aton > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.4/doctest.py", line 1324, in __run > compileflags, 1), test.globs) > File "<doctest __main__.dottedQuadToNum[2]>", line 1, in <module> > int(dottedQuadToNum(' 1.2.3 ')) > File "validate.py", line 300, in dottedQuadToNum > raise ValueError('Not a good dotted-quad IP: %s' % ip) > ValueError: Not a good dotted-quad IP: 1.2.3 >Trying: > int(dottedQuadToNum('1.2.3.4')) >Expecting: > 16909060 >ok >Trying: > dottedQuadToNum('255.255.255.255') >Expecting: > 4294967295 >ok >Trying: > dottedQuadToNum('255.255.255.256') >Expecting: > Traceback (most recent call last): > ValueError: Not a good dotted-quad IP: 255.255.255.256 >ok >Trying: > vtor.check('force_list', ()) >Expecting: > [] >ok >Trying: > vtor.check('force_list', []) >Expecting: > [] >ok >Trying: > vtor.check('force_list', 'hello') >Expecting: > ['hello'] >ok >Trying: > vtor.check('bool_list', ()) >Expecting: > [] >ok >Trying: > vtor.check('bool_list', []) >Expecting: > [] >ok >Trying: > check_res = vtor.check('bool_list', (True, False)) >Expecting nothing >ok >Trying: > check_res == [True, False] >Expecting: > 1 >ok >Trying: > check_res = vtor.check('bool_list', [True, False]) >Expecting nothing >ok >Trying: > check_res == [True, False] >Expecting: > 1 >ok >Trying: > vtor.check('bool_list', [True, 'a']) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "a" is of the wrong type. >ok >Trying: > vtor.check('boolean', 0) >Expecting: > 0 >ok >Trying: > vtor.check('boolean', False) >Expecting: > 0 >ok >Trying: > vtor.check('boolean', '0') >Expecting: > 0 >ok >Trying: > vtor.check('boolean', 'off') >Expecting: > 0 >ok >Trying: > vtor.check('boolean', 'false') >Expecting: > 0 >ok >Trying: > vtor.check('boolean', 'no') >Expecting: > 0 >ok >Trying: > vtor.check('boolean', 'nO') >Expecting: > 0 >ok >Trying: > vtor.check('boolean', 'NO') >Expecting: > 0 >ok >Trying: > vtor.check('boolean', 1) >Expecting: > 1 >ok >Trying: > vtor.check('boolean', True) >Expecting: > 1 >ok >Trying: > vtor.check('boolean', '1') >Expecting: > 1 >ok >Trying: > vtor.check('boolean', 'on') >Expecting: > 1 >ok >Trying: > vtor.check('boolean', 'true') >Expecting: > 1 >ok >Trying: > vtor.check('boolean', 'yes') >Expecting: > 1 >ok >Trying: > vtor.check('boolean', 'Yes') >Expecting: > 1 >ok >Trying: > vtor.check('boolean', 'YES') >Expecting: > 1 >ok >Trying: > vtor.check('boolean', '') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "" is of the wrong type. >ok >Trying: > vtor.check('boolean', 'up') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "up" is of the wrong type. >ok >Trying: > vtor.check('float', '2') >Expecting: > 2.0 >ok >Trying: > vtor.check('float', '-6.8') * 10 >Expecting: > -68.0 >ok >Trying: > vtor.check('float', '12.2') * 10 >Expecting: > 122.0 >ok >Trying: > vtor.check('float', 8.4) * 10 >Expecting: > 84.0 >ok >Trying: > vtor.check('float', 'a') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "a" is of the wrong type. >ok >Trying: > vtor.check('float(10.1)', '10.2') * 10 >Expecting: > 102.0 >ok >Trying: > vtor.check('float(max=20.2)', '15.1') * 10 >Expecting: > 151.0 >ok >Trying: > vtor.check('float(10.0)', '9.0') >Expecting: > Traceback (most recent call last): > VdtValueTooSmallError: the value "9.0" is too small. >ok >Trying: > vtor.check('float(max=20.0)', '35.0') >Expecting: > Traceback (most recent call last): > VdtValueTooBigError: the value "35.0" is too big. >ok >Trying: > vtor.check('float_list', ()) >Expecting: > [] >ok >Trying: > vtor.check('float_list', []) >Expecting: > [] >ok >Trying: > vtor.check('float_list', (1, 2.0)) >Expecting: > [1.0, 2.0] >ok >Trying: > vtor.check('float_list', [1, 2.0]) >Expecting: > [1.0, 2.0] >ok >Trying: > vtor.check('float_list', [1, 'a']) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "a" is of the wrong type. >ok >Trying: > vtor.check('int_list', ()) >Expecting: > [] >ok >Trying: > vtor.check('int_list', []) >Expecting: > [] >ok >Trying: > vtor.check('int_list', (1, 2)) >Expecting: > [1, 2] >ok >Trying: > vtor.check('int_list', [1, 2]) >Expecting: > [1, 2] >ok >Trying: > vtor.check('int_list', [1, 'a']) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "a" is of the wrong type. >ok >Trying: > vtor.check('integer', '-1') >Expecting: > -1 >ok >Trying: > vtor.check('integer', '0') >Expecting: > 0 >ok >Trying: > vtor.check('integer', 9) >Expecting: > 9 >ok >Trying: > vtor.check('integer', 'a') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "a" is of the wrong type. >ok >Trying: > vtor.check('integer', '2.2') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "2.2" is of the wrong type. >ok >Trying: > vtor.check('integer(10)', '20') >Expecting: > 20 >ok >Trying: > vtor.check('integer(max=20)', '15') >Expecting: > 15 >ok >Trying: > vtor.check('integer(10)', '9') >Expecting: > Traceback (most recent call last): > VdtValueTooSmallError: the value "9" is too small. >ok >Trying: > vtor.check('integer(10)', 9) >Expecting: > Traceback (most recent call last): > VdtValueTooSmallError: the value "9" is too small. >ok >Trying: > vtor.check('integer(max=20)', '35') >Expecting: > Traceback (most recent call last): > VdtValueTooBigError: the value "35" is too big. >ok >Trying: > vtor.check('integer(max=20)', 35) >Expecting: > Traceback (most recent call last): > VdtValueTooBigError: the value "35" is too big. >ok >Trying: > vtor.check('integer(0, 9)', False) >Expecting: > 0 >ok >Trying: > vtor.check('ip_addr', '1 ') >Expecting: > '1' >********************************************************************** >File "validate.py", line 962, in __main__.is_ip_addr >Failed example: > vtor.check('ip_addr', '1 ') >Exception raised: > Traceback (most recent call last): > File "validate.py", line 298, in dottedQuadToNum > socket.inet_aton(ip.strip()))[0] > OSError: illegal IP address string passed to inet_aton > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "validate.py", line 988, in is_ip_addr > dottedQuadToNum(value) > File "validate.py", line 300, in dottedQuadToNum > raise ValueError('Not a good dotted-quad IP: %s' % ip) > ValueError: Not a good dotted-quad IP: 1 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.4/doctest.py", line 1324, in __run > compileflags, 1), test.globs) > File "<doctest __main__.is_ip_addr[0]>", line 1, in <module> > vtor.check('ip_addr', '1 ') > File "validate.py", line 625, in check > return self._check_value(value, fun_name, fun_args, fun_kwargs) > File "validate.py", line 657, in _check_value > return fun(value, *fun_args, **fun_kwargs) > File "validate.py", line 990, in is_ip_addr > raise VdtValueError(value) > VdtValueError: the value "1" is unacceptable. >Trying: > vtor.check('ip_addr', ' 1.2') >Expecting: > '1.2' >********************************************************************** >File "validate.py", line 964, in __main__.is_ip_addr >Failed example: > vtor.check('ip_addr', ' 1.2') >Exception raised: > Traceback (most recent call last): > File "validate.py", line 298, in dottedQuadToNum > socket.inet_aton(ip.strip()))[0] > OSError: illegal IP address string passed to inet_aton > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "validate.py", line 988, in is_ip_addr > dottedQuadToNum(value) > File "validate.py", line 300, in dottedQuadToNum > raise ValueError('Not a good dotted-quad IP: %s' % ip) > ValueError: Not a good dotted-quad IP: 1.2 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.4/doctest.py", line 1324, in __run > compileflags, 1), test.globs) > File "<doctest __main__.is_ip_addr[1]>", line 1, in <module> > vtor.check('ip_addr', ' 1.2') > File "validate.py", line 625, in check > return self._check_value(value, fun_name, fun_args, fun_kwargs) > File "validate.py", line 657, in _check_value > return fun(value, *fun_args, **fun_kwargs) > File "validate.py", line 990, in is_ip_addr > raise VdtValueError(value) > VdtValueError: the value "1.2" is unacceptable. >Trying: > vtor.check('ip_addr', ' 1.2.3 ') >Expecting: > '1.2.3' >********************************************************************** >File "validate.py", line 966, in __main__.is_ip_addr >Failed example: > vtor.check('ip_addr', ' 1.2.3 ') >Exception raised: > Traceback (most recent call last): > File "validate.py", line 298, in dottedQuadToNum > socket.inet_aton(ip.strip()))[0] > OSError: illegal IP address string passed to inet_aton > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "validate.py", line 988, in is_ip_addr > dottedQuadToNum(value) > File "validate.py", line 300, in dottedQuadToNum > raise ValueError('Not a good dotted-quad IP: %s' % ip) > ValueError: Not a good dotted-quad IP: 1.2.3 > > During handling of the above exception, another exception occurred: > > Traceback (most recent call last): > File "/usr/lib/python3.4/doctest.py", line 1324, in __run > compileflags, 1), test.globs) > File "<doctest __main__.is_ip_addr[2]>", line 1, in <module> > vtor.check('ip_addr', ' 1.2.3 ') > File "validate.py", line 625, in check > return self._check_value(value, fun_name, fun_args, fun_kwargs) > File "validate.py", line 657, in _check_value > return fun(value, *fun_args, **fun_kwargs) > File "validate.py", line 990, in is_ip_addr > raise VdtValueError(value) > VdtValueError: the value "1.2.3" is unacceptable. >Trying: > vtor.check('ip_addr', '1.2.3.4') >Expecting: > '1.2.3.4' >ok >Trying: > vtor.check('ip_addr', '0.0.0.0') >Expecting: > '0.0.0.0' >ok >Trying: > vtor.check('ip_addr', '255.255.255.255') >Expecting: > '255.255.255.255' >ok >Trying: > vtor.check('ip_addr', '255.255.255.256') >Expecting: > Traceback (most recent call last): > VdtValueError: the value "255.255.255.256" is unacceptable. >ok >Trying: > vtor.check('ip_addr', '1.2.3.4.5') >Expecting: > Traceback (most recent call last): > VdtValueError: the value "1.2.3.4.5" is unacceptable. >ok >Trying: > vtor.check('ip_addr', 0) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "0" is of the wrong type. >ok >Trying: > vtor.check('ip_addr_list', ()) >Expecting: > [] >ok >Trying: > vtor.check('ip_addr_list', []) >Expecting: > [] >ok >Trying: > vtor.check('ip_addr_list', ('1.2.3.4', '5.6.7.8')) >Expecting: > ['1.2.3.4', '5.6.7.8'] >ok >Trying: > vtor.check('ip_addr_list', ['a']) >Expecting: > Traceback (most recent call last): > VdtValueError: the value "a" is unacceptable. >ok >Trying: > vtor.check('list', ()) >Expecting: > [] >ok >Trying: > vtor.check('list', []) >Expecting: > [] >ok >Trying: > vtor.check('list', (1, 2)) >Expecting: > [1, 2] >ok >Trying: > vtor.check('list', [1, 2]) >Expecting: > [1, 2] >ok >Trying: > vtor.check('list(3)', (1, 2)) >Expecting: > Traceback (most recent call last): > VdtValueTooShortError: the value "(1, 2)" is too short. >ok >Trying: > vtor.check('list(max=5)', (1, 2, 3, 4, 5, 6)) >Expecting: > Traceback (most recent call last): > VdtValueTooLongError: the value "(1, 2, 3, 4, 5, 6)" is too long. >ok >Trying: > vtor.check('list(min=3, max=5)', (1, 2, 3, 4)) >Expecting: > [1, 2, 3, 4] >ok >Trying: > vtor.check('list', 0) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "0" is of the wrong type. >ok >Trying: > vtor.check('list', '12') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "12" is of the wrong type. >ok >Trying: > mix_str = "mixed_list('integer', 'float', 'ip_addr', 'string', 'boolean')" >Expecting nothing >ok >Trying: > check_res = vtor.check(mix_str, (1, 2.0, '1.2.3.4', 'a', True)) >Expecting nothing >ok >Trying: > check_res == [1, 2.0, '1.2.3.4', 'a', True] >Expecting: > 1 >ok >Trying: > check_res = vtor.check(mix_str, ('1', '2.0', '1.2.3.4', 'a', 'True')) >Expecting nothing >ok >Trying: > check_res == [1, 2.0, '1.2.3.4', 'a', True] >Expecting: > 1 >ok >Trying: > vtor.check(mix_str, ('b', 2.0, '1.2.3.4', 'a', True)) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "b" is of the wrong type. >ok >Trying: > vtor.check(mix_str, (1, 2.0, '1.2.3.4', 'a')) >Expecting: > Traceback (most recent call last): > VdtValueTooShortError: the value "(1, 2.0, '1.2.3.4', 'a')" is too short. >ok >Trying: > vtor.check(mix_str, (1, 2.0, '1.2.3.4', 'a', 1, 'b')) >Expecting: > Traceback (most recent call last): > VdtValueTooLongError: the value "(1, 2.0, '1.2.3.4', 'a', 1, 'b')" is too long. >ok >Trying: > vtor.check(mix_str, 0) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "0" is of the wrong type. >ok >Trying: > vtor.check('mixed_list("yoda")', ('a')) >Expecting: > Traceback (most recent call last): > VdtParamError: passed an incorrect value "KeyError('yoda',)" for parameter "'mixed_list'" >ok >Trying: > vtor.check('option("yoda", "jedi")', 'yoda') >Expecting: > 'yoda' >ok >Trying: > vtor.check('option("yoda", "jedi")', 'jed') >Expecting: > Traceback (most recent call last): > VdtValueError: the value "jed" is unacceptable. >ok >Trying: > vtor.check('option("yoda", "jedi")', 0) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "0" is of the wrong type. >ok >Trying: > vtor.check('string', '0') >Expecting: > '0' >ok >Trying: > vtor.check('string', 0) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "0" is of the wrong type. >ok >Trying: > vtor.check('string(2)', '12') >Expecting: > '12' >ok >Trying: > vtor.check('string(2)', '1') >Expecting: > Traceback (most recent call last): > VdtValueTooShortError: the value "1" is too short. >ok >Trying: > vtor.check('string(min=2, max=3)', '123') >Expecting: > '123' >ok >Trying: > vtor.check('string(min=2, max=3)', '1234') >Expecting: > Traceback (most recent call last): > VdtValueTooLongError: the value "1234" is too long. >ok >Trying: > vtor.check('string_list', ()) >Expecting: > [] >ok >Trying: > vtor.check('string_list', []) >Expecting: > [] >ok >Trying: > vtor.check('string_list', ('a', 'b')) >Expecting: > ['a', 'b'] >ok >Trying: > vtor.check('string_list', ['a', 1]) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "1" is of the wrong type. >ok >Trying: > vtor.check('string_list', 'hello') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "hello" is of the wrong type. >ok >Trying: > vtor.check('tuple', ()) >Expecting: > () >ok >Trying: > vtor.check('tuple', []) >Expecting: > () >ok >Trying: > vtor.check('tuple', (1, 2)) >Expecting: > (1, 2) >ok >Trying: > vtor.check('tuple', [1, 2]) >Expecting: > (1, 2) >ok >Trying: > vtor.check('tuple(3)', (1, 2)) >Expecting: > Traceback (most recent call last): > VdtValueTooShortError: the value "(1, 2)" is too short. >ok >Trying: > vtor.check('tuple(max=5)', (1, 2, 3, 4, 5, 6)) >Expecting: > Traceback (most recent call last): > VdtValueTooLongError: the value "(1, 2, 3, 4, 5, 6)" is too long. >ok >Trying: > vtor.check('tuple(min=3, max=5)', (1, 2, 3, 4)) >Expecting: > (1, 2, 3, 4) >ok >Trying: > vtor.check('tuple', 0) >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "0" is of the wrong type. >ok >Trying: > vtor.check('tuple', '12') >Expecting: > Traceback (most recent call last): > VdtTypeError: the value "12" is of the wrong type. >ok >Trying: > numToDottedQuad(long(-1)) >Expecting: > Traceback (most recent call last): > ValueError: Not a good numeric IP: -1 >ok >Trying: > numToDottedQuad(long(1)) >Expecting: > '0.0.0.1' >ok >Trying: > numToDottedQuad(long(16777218)) >Expecting: > '1.0.0.2' >ok >Trying: > numToDottedQuad(long(16908291)) >Expecting: > '1.2.0.3' >ok >Trying: > numToDottedQuad(long(16909060)) >Expecting: > '1.2.3.4' >ok >Trying: > numToDottedQuad(long(4294967295)) >Expecting: > '255.255.255.255' >ok >Trying: > numToDottedQuad(long(4294967296)) >Expecting: > Traceback (most recent call last): > ValueError: Not a good numeric IP: 4294967296 >ok >Trying: > numToDottedQuad(-1) >Expecting: > Traceback (most recent call last): > ValueError: Not a good numeric IP: -1 >ok >Trying: > numToDottedQuad(1) >Expecting: > '0.0.0.1' >ok >Trying: > numToDottedQuad(16777218) >Expecting: > '1.0.0.2' >ok >Trying: > numToDottedQuad(16908291) >Expecting: > '1.2.0.3' >ok >Trying: > numToDottedQuad(16909060) >Expecting: > '1.2.3.4' >ok >Trying: > numToDottedQuad(4294967295) >Expecting: > '255.255.255.255' >ok >Trying: > numToDottedQuad(4294967296) >Expecting: > Traceback (most recent call last): > ValueError: Not a good numeric IP: 4294967296 >ok >18 items had no tests: > __main__ > __main__.Validator._check_value > __main__.Validator._handle_none > __main__.Validator._list_handle > __main__.Validator._parse_check > __main__.Validator._parse_with_caching > __main__.Validator._unquote > __main__.Validator.get_default_value > __main__.VdtMissingValue > __main__.VdtParamError > __main__.VdtTypeError > __main__.VdtUnknownCheckError > __main__.VdtValueError > __main__.VdtValueTooBigError > __main__.VdtValueTooLongError > __main__.VdtValueTooShortError > __main__.VdtValueTooSmallError > __main__.unicode >32 items passed all tests: > 1 tests in __main__.ValidateError > 7 tests in __main__.Validator > 1 tests in __main__.Validator.__init__ > 2 tests in __main__.Validator._pass > 3 tests in __main__.Validator.check > 1 tests in __main__.VdtParamError.__init__ > 1 tests in __main__.VdtTypeError.__init__ > 1 tests in __main__.VdtUnknownCheckError.__init__ > 1 tests in __main__.VdtValueError.__init__ > 1 tests in __main__.VdtValueTooBigError.__init__ > 1 tests in __main__.VdtValueTooLongError.__init__ > 1 tests in __main__.VdtValueTooShortError.__init__ > 1 tests in __main__.VdtValueTooSmallError.__init__ > 3 tests in __main__._is_num_param > 25 tests in __main__._test > 3 tests in __main__._test2 > 11 tests in __main__._test3 > 3 tests in __main__.force_list > 7 tests in __main__.is_bool_list > 18 tests in __main__.is_boolean > 9 tests in __main__.is_float > 5 tests in __main__.is_float_list > 5 tests in __main__.is_int_list > 12 tests in __main__.is_integer > 4 tests in __main__.is_ip_addr_list > 9 tests in __main__.is_list > 10 tests in __main__.is_mixed_list > 3 tests in __main__.is_option > 6 tests in __main__.is_string > 5 tests in __main__.is_string_list > 9 tests in __main__.is_tuple > 14 tests in __main__.numToDottedQuad >********************************************************************** >2 items had failures: > 3 of 6 in __main__.dottedQuadToNum > 3 of 9 in __main__.is_ip_addr >198 tests in 52 items. >192 passed and 6 failed. >***Test Failed*** 6 failures. >Traceback (most recent call last): > File "validate.py", line 1472, in <module> > assert not failures, '{} failures out of {} tests'.format(failures, tests) >AssertionError: 6 failures out of 198 tests > * ERROR: dev-python/configobj-5.0.5::gentoo failed (test phase): > * Tests fail with python3.4 > * > * Call stack: > * ebuild.sh, line 93: Called src_test > * environment, line 3509: Called distutils-r1_src_test > * environment, line 920: Called _distutils-r1_run_foreach_impl 'python_test' > * environment, line 289: Called python_foreach_impl 'distutils-r1_run_phase' 'python_test' > * environment, line 3059: Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2176: Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'python_test' > * environment, line 2174: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'python_test' > * environment, line 550: Called distutils-r1_run_phase 'python_test' > * environment, line 857: Called python_test > * environment, line 3389: Called die > * The specific snippet of code: > * "${PYTHON}" validate.py -v || die "Tests fail with ${EPYTHON}" > * > * If you need support, post the output of `emerge --info '=dev-python/configobj-5.0.5::gentoo'`, > * the complete build log and the output of `emerge -pqv '=dev-python/configobj-5.0.5::gentoo'`. > * The complete build log is located at '/var/tmp/portage/dev-python/configobj-5.0.5/temp/build.log'. > * The ebuild environment file is located at '/var/tmp/portage/dev-python/configobj-5.0.5/temp/environment'. > * Working directory: '/var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5' > * S: '/var/tmp/portage/dev-python/configobj-5.0.5/work/configobj-5.0.5'
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 557832
: 409064 |
409066