R David Murray
74213e4ee9
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-16 14:32:54 -04:00
R David Murray
4189b67a66
#14984 : On POSIX, enforce permissions when reading default .netrc.
...
Initial patch by Bruno Piguet.
This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it. Fixing that issue will be an enhancement.
2013-09-16 13:48:44 -04:00
Benjamin Peterson
43ee1a5d90
fix regression in netrc comment handling ( closes #12009 )
2011-06-10 11:32:52 -05:00
R. David Murray
d75cc91647
Merged revisions 86925 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86925 | r.david.murray | 2010-12-01 21:58:07 -0500 (Wed, 01 Dec 2010) | 4 lines
#10464 : fix netrc handling of lines with embedded '#" characters.
Patch by Xuanji Li.
........
2010-12-02 03:16:23 +00:00
Benjamin Peterson
5c8da86f3a
convert usage of fail* to assert*
2009-06-30 22:57:08 +00:00
Jason Tishler
0fd54d8050
Unconditionally opening the temp file in text mode causes this test to fail
...
under Cygwin. The attached patch corrects this problem.
I tested this patch under Red Hat Linux 8.0 too.
2003-08-11 12:13:14 +00:00
Neal Norwitz
996acf122d
Actually run these tests from regrtest.py.
...
There was no test_main() and the main body was protected
by if __name__ == '__main__' so the test didn't happen
on import either.
2003-02-17 14:51:41 +00:00
Guido van Rossum
3b0a3293c3
Massive changes from SF 589982 (tempfile.py rewrite, by Zack
...
Weinberg). This changes all uses of deprecated tempfile functions to
the recommended ones.
2002-08-09 16:38:32 +00:00
Barry Warsaw
04f357cffe
Get rid of relative imports in all unittests. Now anything that
...
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".
This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).
Now Tim and Jack can have at it. :)
2002-07-23 19:04:11 +00:00
Tim Peters
863ac44b74
Whitespace normalization.
2002-04-16 01:38:40 +00:00
Andrew M. Kuchling
76fffd81e9
Add a simple test suite for netrc.py, and remove it from test_sundry
2002-03-22 02:48:57 +00:00