[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1069588 - in /subversion/trunk: subversion/tests/cmdline/diff_tests.py subversion/tests/cmdline/svntest/err.py subversion/tests/cmdline/svntest/verify.py tools/dev/gen-py-errors.py

From: Hyrum K Wright <hyrum_at_hyrumwright.org>
Date: Mon, 14 Feb 2011 03:34:43 +0000

On Sun, Feb 13, 2011 at 3:49 AM, Daniel Shahaf <d.s_at_daniel.shahaf.name> wrote:
> hwright_at_apache.org wrote on Thu, Feb 10, 2011 at 22:04:43 -0000:
>> Added: subversion/trunk/tools/dev/gen-py-errors.py
>> URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dev/gen-py-errors.py?rev=1069588&view=auto
>> ==============================================================================
>> --- subversion/trunk/tools/dev/gen-py-errors.py (added)
>> +++ subversion/trunk/tools/dev/gen-py-errors.py Thu Feb 10 22:04:42 2011
>> @@ -0,0 +1,66 @@
>> +#!/usr/bin/env python
>> +#
>> +# gen-py-errors.py: Generate a python module which maps error names to numbers.
>> +#                   (The purpose being easier writing of the python tests.)
>> +
>> +import sys, os
>> +sys.path.append(os.path.join('subversion', 'bindings', 'swig',
>> +                             'python', 'tests'))
>> +
>> +
>> +import setup_path
>
> This appears to be an unused import.

It appears as such, but actually isn't. setup_path.py does some
fudging with global state to ensure the development bindings are
properly loaded (instead of any installed bindings). The swig python
tests also use it in such a manner.

-Hyrum
Received on 2011-02-14 04:35:22 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.