[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: The command line used to run the tests is important. If you run through "test.regrtest", it should "chdir" to a sandbox directory to run the test. If you call directly the test_bufio.py file, it runs in the current directory (as before the patch). And the per

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: And you could try the patch attached to #7443, and see if it fixes the test_bufio issue. -- ___ Python tracker ___ ___

[issue7443] test.support.unlink issue on Windows platform

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: Another report of something looking very similar on #7712. -- nosy: +brian.curtin, flox priority: low -> high ___ Python tracker ___ __

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: Ok, it may be not related directly with this patch. Can you diagnose if it something like #7443? -- ___ Python tracker ___ ___

[issue7889] random produces different output on different architectures

2010-02-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Hmm, this may be difficult to fix without breaking somebody's expectation of repeating sequences they've already generated. The code is in random_getrandbits(): http://svn.python.org/view/python/trunk/Modules/_randommodule.c?revision=72344&view=markup ---

[issue7890] equal unicode/str objects can have unequal hash

2010-02-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: This is not a bug in Python, but in your code. sys.setdefaultencoding is only supported when setting the default encoding to either latin-1, or ascii, or 'undefined'. Setting it to any other value will have undesirable consequences like the one you report. L

[issue7889] random produces different output on different architectures

2010-02-08 Thread Martin v . Löwis
Martin v. Löwis added the comment: Would you like to work on a patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mai

[issue7890] equal unicode/str objects can have unequal hash

2010-02-08 Thread lplatypus
New submission from lplatypus : The documentation for the hash() function says: "Numeric values that compare equal have the same hash value (even if they are of different types, as is the case for 1 and 1.0)" This can be violated when comparing a unicode object with its str equivalent. Here i

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Brian Curtin
Brian Curtin added the comment: Yep, that's the only one failing. The output I attached is the result of running the test alone. -- ___ Python tracker ___ __

[issue7886] reverse on an empty list returns None

2010-02-08 Thread tormen
tormen added the comment: Thanks for your nice feedback even though my bug report was so stupid! -- ___ Python tracker ___ ___ Python-

[issue7826] support caching for 2to3

2010-02-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm apprehensive about accepting this patch for several reasons. First of all, it has no tests. Secondly, and more importantly, I dislike the hacks that it adds. I would prefer 2to3 to grow a more general plugin API, which people could use to add new fixer

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: Brian, is it the only one failing? Did you have some test running before? Which one? (alphabetic order?) Do you reproduce the error when running this test alone? "-m test.regrtest -uall test_bufio" -- ___ Python

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Brian Curtin
Brian Curtin added the comment: With the latest patch I get one failure: test_bufio. I piped that test to a file and attached the results here. There are numerous "Permission denied: @test" IOErrors. -- Added file: http://bugs.python.org/file16181/test_bufio.stdout.txt __

[issue7889] random produces different output on different architectures

2010-02-08 Thread Terrence Cole
New submission from Terrence Cole : This code: >>> random.seed(b'foo') >>> random.getrandbits(8) ...repeated 7 more times... Yields the sequence of values: amd64: 227, 199, 34, 218, 83, 115, 236, 254 x86: 245, 198, 204, 66, 219, 4, 168, 93 Comments in the source seem to indicate random

[issue7888] turtle "settiltangle" should be marked deprecated, not "tiltangle"

2010-02-08 Thread Michael Newman
New submission from Michael Newman : In the turtle module documentation: http://docs.python.org/3.1/library/turtle.html http://docs.python.org/py3k/library/turtle.html Currently it says "Deprecated since Python 3.1" under the "turtle.tiltangle" section. That should be under "turtle.settiltangle

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-08 Thread Michael Foord
Michael Foord added the comment: Well, probably better for you to get the commit bit and DIY then. :-) -- ___ Python tracker ___ ___ P

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-08 Thread Dino Viehland
Dino Viehland added the comment: Brett Cannon was going to try and look at it and commit it. If you think it looks good you can commit it :) I do not yet have commit privledges simply because I need to gen my SSH key and send that off to Brett. I'm also hoping to get a little hand holding o

[issue7887] errno 107 socket.recv issure

2010-02-08 Thread Jordan Apgar
New submission from Jordan Apgar : I have a simple tcp server and client where the server sits and waits for a message and then processes it, my client sends its first message to the server. On the server I receive: socket.error: [Errno 107] Transport endpoint is not connected when calling ms

[issue7855] Add test cases for ctypes/winreg for issues found in IronPython

2010-02-08 Thread Michael Foord
Michael Foord added the comment: Does this need committing? Dino - do you have checkin rights? -- ___ Python tracker ___ ___ Python-bu

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-02-08 Thread Vlastimil Brom
Vlastimil Brom added the comment: Hi, thanks for the update! Just for the unlikely case, it hasn't been noticed sofar, using python 2.6.4 or 2.5.4 with the regexp build issue2636-20100204.zip I am getting the following easy-to-fix error: Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC

[issue7032] Make assertMultilineEqual default for unicode string comparison in

2010-02-08 Thread Michael Foord
Michael Foord added the comment: Revision 78116. -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue7826] support caching for 2to3

2010-02-08 Thread Brian Harring
Brian Harring added the comment: Contributor agreement form is enroute via snail mail... kind of wish y'all accepted pdf's via email though ;) As for the print("cache hit"), that should be punted- not very useful in it's current form (doesn't indicate what 'hit') and slipped in accidentally.

[issue7876] unittest docs use deprecated method in code example

2010-02-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed on 3.1 in r78111. -- assignee: georg.brandl -> ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2010-02-08 Thread Mark Dickinson
Mark Dickinson added the comment: Many thanks for the update. I'll close this as not a Python bug, then. (Unless there's an easy and nonintrusive workaround...) -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue7861] 2to3: "import foo" -> "from . import foo"

2010-02-08 Thread Thomas Spura
Thomas Spura added the comment: The commit I'm talking about was 22 months ago (r61755), python 2.6.2 was released April 14, 2009. At least strange, that this is not jet in there, but if you think, it will in the next version... -- ___ Python trac

[issue5930] Transient error in multiprocessing

2010-02-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- components: +Tests stage: needs patch -> test needed versions: +Python 3.2 ___ Python tracker ___ ___ P

[issue6747] test test_multiprocessing failed

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: See #5930. -- nosy: +flox resolution: -> duplicate stage: test needed -> status: open -> closed superseder: -> Transient error in multiprocessing ___ Python tracker ___

[issue6366] rare assertion failure in test_multiprocessing

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: Closed as duplicate. -- nosy: +flox stage: needs patch -> status: open -> closed ___ Python tracker ___ __

[issue6366] rare assertion failure in test_multiprocessing

2010-02-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- resolution: -> duplicate superseder: -> Transient error in multiprocessing ___ Python tracker ___ ___

[issue7878] regrtest should check for changes in import machinery

2010-02-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16178/windows symlink draft 21.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Jason R. Coombs added the comment: This latest patch (22) does some refactoring in test_posixpath to reduce nesting, limit duplicated code, and skip failing tests on Windows. The only task now is to address the failing tests in a limited user account. -- Added file: http://bugs.python

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2010-02-08 Thread Otto
Otto added the comment: This problem has been diagnosed as a problem in the mips64 port of OpenBSD. mips64 systems need to emulate some floating point instructions in software, depending on the cpu type. In this case we hit an instruction for which the emulation was incomplete. The floating p

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Brett Cannon
Brett Cannon added the comment: Importlib actually already can do this: importlib.test.regrtest. It runs regrtest after importlib has been set for __import__. It also skips tests known to fail for stupid reasons (typically they don't expect __loader__ to be defined). You can also run the impo

[issue7886] reverse on an empty list returns None

2010-02-08 Thread Ezio Melotti
Ezio Melotti added the comment: list.reverse() reverses the list *in place* and returns None, and "for item in None: ..." correctly raises a TypeError because None is not iterable. You either want for item in reversed(mylist): ... or mylist.reverse() for item in mylist: ... -- nosy:

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Option 3 is ok with me. There could also be option 4: add a special flag (or environment var) to regrtest so as to run all tests with __import__ pulled from importlib. Then we can setup a buildbot with that flag / env var. -- ___

[issue7886] reverse on an empty list returns None

2010-02-08 Thread tormen
New submission from tormen : # python 3.1.1: myList = [] for item in myList: print( item ) # <<< works for item in myList.reverse(): # <<< breaks with: TypeError: 'NoneType' object is not iterable print( item ) # # But the reverse of an empty list should really be an empty list # ...

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Brett Cannon
Brett Cannon added the comment: So option 3 would marginalize __import__ testing as importlib's finders and loaders as pulled from sys.path_importer_cache would be used over __import__'s own implicit importers that it contains. As for test.support.import_module being the culprit, it is. The r

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That would be test_support.import_module, which at your recommendation > I changed to use importlib.import_module at the last pycon sprint :) I don't think it's the culprit. According to the traceback, importlib is triggered by a simple "import xmlrpc.clien

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread R. David Murray
R. David Murray added the comment: I meant test.support for py3k, of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread R. David Murray
R. David Murray added the comment: That would be test_support.import_module, which at your recommendation I changed to use importlib.import_module at the last pycon sprint :) I'm not clear on why option 3 would interfere with __import__ getting tested? -- nosy: +r.david.murray __

[issue7885] test_distutils fails if Python built in separate directory

2010-02-08 Thread Neil Schemenauer
New submission from Neil Schemenauer : Lib/test/test_distutils.py crashes if Python was built in a directory other than the source directory. Using a separate build directory is handy if you are building Python with different sets of configure options since you only need one copy of the sourc

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-02-08 Thread Brian Curtin
Brian Curtin added the comment: Interesting, I'll take a look and see why that's happening. Good point about the names. -- ___ Python tracker ___ ___

[issue7884] IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space

2010-02-08 Thread Ezio Melotti
Ezio Melotti added the comment: Duplicate of #1028 (and #6920). -- nosy: +ezio.melotti resolution: -> duplicate stage: test needed -> committed/rejected status: open -> closed ___ Python tracker __

[issue7712] Add a context manager to change cwd in test.test_support and run the test suite in a temp dir.

2010-02-08 Thread Ezio Melotti
Ezio Melotti added the comment: Final version of the patch, with the temp_cwd context manager added to test_support and used in test_regrtest to run the test suite in a temporary directory. It also includes a fix for test_subprocess that was failing when the tests are not run in the original

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-02-08 Thread Tim Golden
Tim Golden added the comment: Sorry; the email interface messed that up. The code which triggered the error was: import _winreg list ( _winreg.IterValue ( _winreg.OpenKey (_winreg.HKEY_CURRENT_USER, "Console") ) ) -- ___ Python t

[issue7877] Iterators over _winreg EnumKey and EnumValue results

2010-02-08 Thread Tim Golden
Tim Golden added the comment: Traceback (most recent call last): File "", line 1, in WindowsError: [Error 6] The handle is invalid I suspect that .iterkeys / .itervalues would be more acceptable spellings as those mirror the dict methods. Whether the idea of extending _winreg beyond the abs

[issue7883] CallTips.py _find_constructor does not work

2010-02-08 Thread Brian Curtin
Brian Curtin added the comment: That change works for me. -- nosy: +brian.curtin priority: -> normal stage: -> test needed ___ Python tracker ___ __

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2010-02-08 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +Alexander.Belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5802] The security descriptors of python binaries in Windows are not strict enough

2010-02-08 Thread Brian Curtin
Brian Curtin added the comment: Is the situation any different if you install Python to "C:\Program Files"? This seems to be at least part of the reason IronPython installs to "C:\Program Files", which was discussed on the IronPython list [1] a few months ago. [1] http://lists.ironpython.co

[issue7857] test_logging fails

2010-02-08 Thread Vinay Sajip
Vinay Sajip added the comment: - Original Message > From: Antoine Pitrou > > There are still random failures: > Ouch. I'm not sure that I can debug this quickly, because the tests work on all platforms I've got access to (Windows XP, Linux Jaunty) and even where they fail, the ve

[issue7884] IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space

2010-02-08 Thread Brian Curtin
Changes by Brian Curtin : -- priority: -> normal stage: -> test needed type: crash -> behavior ___ Python tracker ___ ___ Python-bugs

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16174/windows symlink draft 21.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Added file: http://bugs.python.org/file16178/windows symlink draft 21.patch ___ Python tracker ___ ___ Python-b

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file16003/windows symlink draft 20.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2010-02-08 Thread Jason R. Coombs
Changes by Jason R. Coombs : Removed file: http://bugs.python.org/file15933/windows symlink draft 19.patch ___ Python tracker ___ ___ Python

[issue7857] test_logging fails

2010-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: There are still random failures: test test_logging failed -- Traceback (most recent call last): File "/home2/buildbot/slave/trunk.loewis-sun/build/Lib/test/test_logging.py", line 1612, in test_listen_config_10_ok ], stream=output) File "/home2/buildbot

[issue7884] IDLE 3.1.1 crashes with UnicodeDecodeError when I press Ctrl-Space

2010-02-08 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna : Platform: Linux Python 3.1.1 built from source. Tk version 8.4, Tcl version 8.4. Idle 2.6.4 (also built from source), works correctly (executes force-open-completions). Test case: - Start idle3 - press Ctrl-Space in the IDLE shell - idle crashes, and a

[issue7883] CallTips.py _find_constructor does not work

2010-02-08 Thread Bernt Røskar Brenna
New submission from Bernt Røskar Brenna : Test case: In IDLE python shell: >>> from http.client import HTTPConnection >>> c = HTTPConnection( Notice that the call tip is an empty parenthesis. This patch works for me: [/tmp/py3k/Lib/idlelib] $ svn diff Index: CallTips.py ==

[issue2777] subprocess unit tests for kill, term and send_signal flaky

2010-02-08 Thread Florent Xicluna
Florent Xicluna added the comment: The patch looks fine. +1 to enable on trunk and follow the buildbots' behavior. -- ___ Python tracker ___ _

[issue2777] subprocess unit tests for kill, term and send_signal flaky

2010-02-08 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue7876] unittest docs use deprecated method in code example

2010-02-08 Thread Bernt Røskar Brenna
Bernt Røskar Brenna added the comment: Sorry, forgot to check svn, I was looking at the 3.1.1 release tarball. -- ___ Python tracker ___ _

[issue7882] Compiling on MOX 10.6 "Snow Leopard" --#warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid.

2010-02-08 Thread WK.
New submission from WK. : get followed while compiling with $ /configure --with-universal-archs="64-bit" $ make #warning Building for Intel with Mac OS X Deployment Target < 10.4 is invalid. See attachment for complete build process. -- assignee: ronaldoussoren components: Macintosh