summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_netrc.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36264: Don't honor POSIX HOME in os.path.expanduser on Windows (GH-12282)Anthony Sottile2019-03-121-0/+1
|
* bpo-35202: Remove unused imports in tests. (GH-10561)Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి)2018-11-161-1/+0
|
* bpo-28334: netrc() now uses expanduser() to find .netrc file (GH-4537)Berker Peksag2017-11-251-3/+40
| | | | | Previously, netrc.netrc() was raised an exception if $HOME is not set. Authored-By: Dimitri Merejkowsky <dimitri.merejkowsky@tanker.io>
* bpo-30806 netrc.__repr__() is broken for writing to file (GH-2491)James Sexton2017-09-301-3/+6
| | | | | netrc file format doesn't support quotes and escapes. See https://linux.die.net/man/5/netrc
* #14984: On POSIX, enforce permissions when reading default .netrc.R David Murray2013-09-181-3/+23
| | | | | | | | 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.
* fix regression in netrc comment handling (closes #12009)Benjamin Peterson2011-06-101-39/+92
|
* Merged revisions 86925 via svnmerge fromR. David Murray2010-12-021-6/+16
| | | | | | | | | | | | 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. ........
* Merged revisions 73715 via svnmerge fromGeorg Brandl2009-08-131-3/+3
| | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r73715 | benjamin.peterson | 2009-07-01 01:06:06 +0200 (Mi, 01 Jul 2009) | 1 line convert old fail* assertions to assert* ........
* #2621 rename test.test_support to test.supportBenjamin Peterson2008-05-201-3/+3
|
* Patch # 1331 by Christian Heimes.Guido van Rossum2007-10-261-7/+6
| | | | | The patch fixes some of the problems on Windows. It doesn't introduce addition problems on Linux.
* Unconditionally opening the temp file in text mode causes this test to failJason Tishler2003-08-111-2/+5
| | | | | | under Cygwin. The attached patch corrects this problem. I tested this patch under Red Hat Linux 8.0 too.
* Actually run these tests from regrtest.py.Neal Norwitz2003-02-171-1/+3
| | | | | | There was no test_main() and the main body was protected by if __name__ == '__main__' so the test didn't happen on import either.
* Massive changes from SF 589982 (tempfile.py rewrite, by ZackGuido van Rossum2002-08-091-2/+2
| | | | | Weinberg). This changes all uses of deprecated tempfile functions to the recommended ones.
* Get rid of relative imports in all unittests. Now anything thatBarry Warsaw2002-07-231-1/+2
| | | | | | | | | | | 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. :)
* Whitespace normalization.Tim Peters2002-04-161-5/+4
|
* Add a simple test suite for netrc.py, and remove it from test_sundryAndrew M. Kuchling2002-03-221-0/+43