You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@codematters.co.uk> on 2005/06/24 22:11:12 UTC
Python RunTime warning
I added a new test in r15167 and it causes this warning
RuntimeWarning: tempnam is a potential security risk to your program
What I want to know is why doesn't the same code in externals_tests.py
cause the same warning?
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: Python RunTime warning
Posted by kf...@collab.net.
Philip Martin <ph...@codematters.co.uk> writes:
> I added a new test in r15167 and it causes this warning
>
> RuntimeWarning: tempnam is a potential security risk to your program
>
> What I want to know is why doesn't the same code in externals_tests.py
> cause the same warning?
externals_tests.py has "import warnings" near the top, then this near
the bottom:
if __name__ == '__main__':
warnings.filterwarnings('ignore', 'tempnam', RuntimeWarning)
svntest.main.run_tests(test_list)
# NOTREACHED
I'm guessing that's why there's a difference :-).
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org