[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Daniel Eriksson
Changes by Daniel Eriksson dan...@starstable.com: -- nosy: +puppet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22753 ___ ___ Python-bugs-list

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-05 Thread Daniel Eriksson
Daniel Eriksson added the comment: Result: Before: 1407219004 988716892 After: 1407219004 0 Before = After 0 This is insane! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19838

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson
Daniel Eriksson added the comment: I'm no expert at all at GDB, but I will give it a go and if this is wrong I can try a lot more. Breakpoint 1, posix_utime (self=0xf00918ed8, args=0xf014459f8, kwargs=0x0) at ./Modules/posixmodule.c:4838 4838PyObject *times = NULL; Current language

[issue14910] argparse: disable abbreviation

2014-08-04 Thread Daniel Eriksson
Daniel Eriksson added the comment: Fixed documentation issues -- Added file: http://bugs.python.org/file36246/issue14910_6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson
Daniel Eriksson added the comment: I used configure with --with-pydebug, will look closer on it when I get to the office -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19838

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson
Daniel Eriksson added the comment: To confirm, my OPT-line is OPT=-g -O0 -Wall -Wstrict-prototypes -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19838

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-04 Thread Daniel Eriksson
Daniel Eriksson added the comment: Larry: Result of that: (gdb) print *utime Structure has no component named operator*. (gdb) print tv No symbol tv in current context. You can also catch me on IRC with the same nickname as here -- ___ Python

[issue14910] argparse: disable abbreviation

2014-08-04 Thread Daniel Eriksson
Daniel Eriksson added the comment: Updated patch -- Added file: http://bugs.python.org/file36260/issue14910_7.diff.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14910

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: Oh, completely missed comments there too! I hope I got them all in a good way! -- Added file: http://bugs.python.org/file36228/issue14910_4.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: Sorry for a new patch this close, but just tripple checked the documentation and noticed a word to much. Made it more clear hopefully -- Added file: http://bugs.python.org/file36229/issue14910_5.diff ___ Python

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Antoine: We have investigated a bit here and it seems that ZFS just keeps a timestamp in seconds in the memory. See function uberblock_update in uberblock.c ( http://people.freebsd.org/~gibbs/zfs_doxygenation/html/d3/d65/uberblock_8c_source.html - Row 57

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: After thinking and looking a bit on it, this patch isn't the best to put into the code what I can see. If any of these things really break, because of something completely different - we won't notice it. A more accurate solution is to maybe look

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: #15745 is probably related to this issue -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19838 ___ ___ Python

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: So me and @larstiq have been sitting with this during the sprint here and we have figured out some things but haven't had the time to put together a patch. If you put two p.touch() before starting the testing, it will not fail on BSD. What we have found out

[issue14910] argparse: disable abbreviation

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: Eli, will look into those tomorrow morning, so a final patch will come during tomorrow. Checked my spam folder - and there they where, fixed the settings now so I get it faster. -- ___ Python tracker rep

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Larry The issue is the following: In the test after the first p.touch (Pdb) old_mtime 1407128672.4133856 (Pdb) old_mtime_ns 1407128672413385711 After second p.touch (Pdb) st.st_mtime_ns 14071286890 (Pdb) st.st_mtime 1407128689.0 So the issue

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Larry - the problem arrives after the second touch, which does os.utime(FILE, None) if the file exists. The os.utime that is in the test-code doesn't really break anything, what breaks the test is the second touch

[issue19838] test.test_pathlib.PosixPathTest.test_touch_common fails on FreeBSD with ZFS

2014-08-03 Thread Daniel Eriksson
Daniel Eriksson added the comment: @Larry - we did that yesterday and on the FreeBSD-machine the regular utimes was used and not utimensat. utimensat is not available on FreeBSD 10 so it fall backs to regular utimes to be used in os.utime. But when a file is created it is the file system

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-08-02 Thread Daniel Eriksson
Daniel Eriksson added the comment: Added Matt Behrens test to Lars Gustäbel 2.7 version. -- nosy: +dan...@starstable.com Added file: http://bugs.python.org/file36202/issue21987_py2.7_with_test.patch ___ Python tracker rep...@bugs.python.org http

[issue21827] textwrap.dedent() fails when largest common whitespace is a substring of smallest leading whitespace

2014-08-02 Thread Daniel Eriksson
Daniel Eriksson added the comment: Tested and it works fine on CentOS 6.4 in 2.7, 3.4 and 3.5 -- nosy: +dan...@starstable.com, ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21827

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2014-08-02 Thread Daniel Eriksson
Daniel Eriksson added the comment: I have tested both patches on CentOS 6.4 and Eduardo Seabra:s patch works correctly with symlinks=True -- nosy: +dan...@starstable.com ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21697

[issue14910] argparse: disable abbreviation

2014-08-02 Thread Daniel Eriksson
Daniel Eriksson added the comment: Update the patch - issue_14910_3.diff argparse.rst - merging conflicts -- nosy: +dan...@starstable.com Added file: http://bugs.python.org/file36207/issue_14910_3.diff ___ Python tracker rep...@bugs.python.org http

[issue16037] httplib: header parsing is unlimited

2014-08-02 Thread Daniel Eriksson
Daniel Eriksson added the comment: Updated the patch for 2.7 to raise HTTPException instead of a new Exception. -- nosy: +clearminds Added file: http://bugs.python.org/file36214/issue_16037_py27_v3.diff ___ Python tracker rep...@bugs.python.org http