You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by BIRD Neil <Ne...@uk.thalesgroup.com> on 2013/07/30 16:47:17 UTC

Python error in 1.8.1 test suite - authz_tests.py

  I'm trying to build 1.8.1 on Scientific Linux 6 (effectievly RHEL6).  All builds OK, but the tests fail halfway through.  Running the failing test by itself:

$make check CLEANUP=true TESTS=subversion/tests/cmdline/authz_tests.py
[1/1] authz_tests.pymake: *** [check] Error 1


  tests.log contains:

START: authz_tests.py
Traceback (most recent call last):
  File "./build/run_tests.py", line 724, in <module>
    main()
  File "./build/run_tests.py", line 717, in main
    failed = th.run(args[2:])
  File "./build/run_tests.py", line 190, in run
    failed = self._run_test(prog, cnt, len(list)) or failed
  File "./build/run_tests.py", line 597, in _run_test
    failed = self._run_py_test(progabs, test_nums, dots_needed)
  File "./build/run_tests.py", line 535, in _run_py_test
    test_selection=test_selection)
  File "/home/nabird/usr/rpmbuild/BUILD/subversion-1.8.1/subversion/tests/cmdline/svntest/main.py", line 2095, in execute_tests
    http_proxy=options.http_proxy)
  File "/home/nabird/usr/rpmbuild/BUILD/subversion-1.8.1/subversion/tests/cmdline/svntest/main.py", line 595, in create_config_dir
    "http-proxy-port=%d" % (http_proxy_parsed.port or 80)
  File "/usr/lib/python2.6/urlparse.py", line 102, in port
    return int(port, 10)
ValueError: invalid literal for int() with base 10: ''


  I've not got a clue what's going on here;  I tried adding some debug but only made matters worse (I'm no python guru :) )

  I do have http_proxy set (to something like "http_proxy://proxyhost:portno/"), but the above error occurs nomatter whether it's set or not.


  Any pointers?

-- 
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit


RE: Python error in 1.8.1 test suite - authz_tests.py

Posted by BIRD Neil - UNSECURED <Ne...@uk.thalesgroup.com>.
From: Philip Martin [mailto:philip.martin@wandisco.com], Sent: Tuesday, July 30, 2013 4:19 PM
> The value that matters is HTTP_PROXY, i.e. uppercase.  The code
> expects
> a value like 'host:port' and breaks on 'http://host:port'.
> However you
> don't need to set a proxy to run the tests, so unset HTTP_PROXY.

  Ah, thanks for that.

  Now, I wonder where I've set that as well as the lower-case version ...

-- 
[neil@fnx ~]# rm -f .signature
[neil@fnx ~]# ls -l .signature
ls: .signature: No such file or directory
[neil@fnx ~]# exit




Re: Python error in 1.8.1 test suite - authz_tests.py

Posted by Philip Martin <ph...@wandisco.com>.
BIRD Neil <Ne...@uk.thalesgroup.com> writes:

>     "http-proxy-port=%d" % (http_proxy_parsed.port or 80)
>   File "/usr/lib/python2.6/urlparse.py", line 102, in port
>     return int(port, 10)
> ValueError: invalid literal for int() with base 10: ''

>   I do have http_proxy set (to something like
>   "http_proxy://proxyhost:portno/"), but the above error occurs
>   nomatter whether it's set or not.

The value that matters is HTTP_PROXY, i.e. uppercase.  The code expects
a value like 'host:port' and breaks on 'http://host:port'.  However you
don't need to set a proxy to run the tests, so unset HTTP_PROXY.

-- 
Philip Martin | Subversion Committer
WANdisco | Non-Stop Data