blair@tigris.org writes:
> Author: blair
> Date: 2002-11-11 15:53:43 -0600 (Mon, 11 Nov 2002)
> New Revision: 3734
>
> Modified:
> trunk/subversion/tests/clients/cmdline/prop_tests.py
> Log:
> * subversion/tests/clients/cmdline/prop_tests.py
> (copy_should_preserve_executable_bits): New regression test for
> issue #982. Right now this test is set to XFail and only run on
> POSIX systems.
>
>
> Modified: trunk/subversion/tests/clients/cmdline/prop_tests.py
> ==============================================================================
> --- trunk/subversion/tests/clients/cmdline/prop_tests.py (original)
> +++ trunk/subversion/tests/clients/cmdline/prop_tests.py Mon Nov 11 15:53:44 2002
> @@ -17,7 +17,7 @@
> ######################################################################
>
> # General modules
> -import string, sys, re, os.path
> +import stat, string, sys, re, os.path
Minor detail regarding os.path in the Subversion Python code; path is
a variable of the os module (of type "posixpath"), thus importing
os.path actually imports the os module. We might as well stop fooling
ourselves and import os explicitly (rather than importing os.path).
:-)
>>> os
Traceback (innermost last):
File "<stdin>", line 1, in ?
NameError: os
>>> import os.path
>>> os
<module 'os' from '/usr/lib/python1.5/os.pyc'>
>>> os.path
<module 'posixpath' from '/usr/lib/python1.5/posixpath.pyc'>
In any case, Not a Big Deal.
--
Daniel Rall <dlr@finemaltcoding.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 11 23:28:09 2002