[issue7646] test_telnetlib fails in Windows XP

2010-02-22 Thread Austin English

Austin English  added the comment:

Okay, thanks for the information.

--

___
Python tracker 
<http://bugs.python.org/issue7646>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7650] test_uuid is invalid

2010-04-08 Thread Austin English

Austin English  added the comment:

>From Juan Lang, who originally pointed out the bug:

My only comment is that the message is now misleading:
-individual_group_bit = (node >> 40L) & 1
-universal_local_bit = (node >> 40L) & 2
message = "%012x doesn't look like a real MAC address" % node
-self.assertEqual(individual_group_bit, 0, message)
-self.assertEqual(universal_local_bit, 0, message)
self.assertNotEqual(node, 0, message)
self.assertNotEqual(node, 0xL, message)

The test no longer checks for the uuid being a MAC address or not.
Ideally it would be reworded to be less confusing, or perhaps the code
could check the various "flavors" of uuids, and check that a generated
uuid conforms to one of them.

--

___
Python tracker 
<http://bugs.python.org/issue7650>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7645] test_distutils fails on Windows XP

2010-01-06 Thread Austin English

New submission from Austin English :

IOError: [Errno 2] No such file or directory: 
'C:\\Python31\\lib\\distutils\\tests\\Setup.sample'

Full output is attached.

--
components: Windows
files: distutils.txt
messages: 97318
nosy: austin987
severity: normal
status: open
title: test_distutils fails on Windows XP
type: behavior
versions: Python 3.1
Added file: http://bugs.python.org/file15761/distutils.txt

___
Python tracker 
<http://bugs.python.org/issue7645>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7646] test_telnetlib fails in Windows XP

2010-01-06 Thread Austin English

New submission from Austin English :

socket.error: [Errno 10053] An established connection was aborted by the 
software in your host machine

Full output is attached.

--
components: Windows
files: telnetlib.txt
messages: 97319
nosy: austin987
severity: normal
status: open
title: test_telnetlib fails in Windows XP
versions: Python 3.1
Added file: http://bugs.python.org/file15762/telnetlib.txt

___
Python tracker 
<http://bugs.python.org/issue7646>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7646] test_telnetlib fails in Windows XP

2010-01-06 Thread Austin English

Changes by Austin English :


--
type:  -> behavior

___
Python tracker 
<http://bugs.python.org/issue7646>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7648] test_urllib2 fails on Windows if not run from C:

2010-01-06 Thread Austin English

New submission from Austin English :

Passes fine if run from C:, but when run from any other drive, fails:

test_trivial (__main__.TrivialTests) ... ERROR

==
ERROR: test_trivial (__main__.TrivialTests)
--
Traceback (most recent call last):
  File "c:\Python31\lib\urllib\request.py", line 1189, in open_local_file
stats = os.stat(localfile)
WindowsError: [Error 3] The system cannot find the path specified: '\\Python31\\
lib\\urllib\\request.py'

--
components: Windows
files: url.txt
messages: 97332
nosy: austin987
severity: normal
status: open
title: test_urllib2 fails on Windows if not run from C:
versions: Python 3.1
Added file: http://bugs.python.org/file15767/url.txt

___
Python tracker 
<http://bugs.python.org/issue7648>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7650] test_uuid is invalid

2010-01-06 Thread Austin English

New submission from Austin English :

>From http://bugs.winehq.org/show_bug.cgi?id=21276

"I believe this is a bug in the python test code, not in Wine.  Wine's
UuidCreate function follows RFC 4122, section 4.4.  That is, it generates a 
Uuid from a pseudorandom number generator, not from a MAC address.  Thus, the 
error message from the test program is correct:  it doesn't appear to be a MAC 
address.  On the other hand, it's not an error:  this is expected.

The python code should be checking the version field of the generated Uuid 
first.  If it's 1, then the generated Uuid *may* be expected to contain a MAC 
address.  From RFC 4122, section 4.1.6:

  For UUID version 1, the node field consists of an IEEE 802 MAC
  address, usually the host address.  For systems with multiple IEEE
  802 addresses, any available one can be used.  The lowest addressed
  octet (octet number 10) contains the global/local bit and the
  unicast/multicast bit, and is the first octet of the address
  transmitted on an 802.3 LAN.

However, the test for the most significant bit not being set is also invalid on 
systems with no MAC address.  From the python code:
   self.assertTrue(node < (1 << 48), message)
The most significant bit of a MAC address is set when the MAC address is a 
multicast address.  For systems with no MAC address, a multicast address is 
supposed to be used.  Also from RFC 4122, section 4.1.6:

  For systems with no IEEE address, a randomly or pseudo-randomly
  generated value may be used; see Section 4.5.  The multicast bit must
  be set in such addresses, in order that they will never conflict with
  addresses obtained from network cards.

This analysis may of use to the Python folks, but it certainly isn't a Wine 
bug."

--
components: Tests
messages: 97337
nosy: austin987
severity: normal
status: open
title: test_uuid is invalid
versions: Python 3.1

___
Python tracker 
<http://bugs.python.org/issue7650>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7650] test_uuid is invalid

2010-01-07 Thread Austin English

Austin English  added the comment:

More info from the wine bug:
Whoops, I didn't notice that Python uses UuidCreateSequential.  From MSDN:

  For security reasons, UuidCreate was modified so that it no longer uses a 
machine's MAC address to generate UUIDs. UuidCreateSequential was
introduced to allow creation of UUIDs using the MAC address of a machine's 
Ethernet card.

I'm reopening this, as Wine's implementation of UuidCreateSequential calls 
UuidCreate, whereas it should use the MAC address-based method.  Setting 
component to rpcrt4, too.

My comment about the multicast bit occasionally being set (when the machine on 
which UuidCreateSequential is called has no MAC address) still stands, so 
there's still a Python bug.

--

___
Python tracker 
<http://bugs.python.org/issue7650>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7648] test_urllib2 fails on Windows if not run from C:

2010-01-10 Thread Austin English

Austin English  added the comment:

Woohoo, thanks!

--

___
Python tracker 
<http://bugs.python.org/issue7648>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7991] test_ntpath fails on Windows XP

2010-07-15 Thread Austin English

Austin English  added the comment:

Runs fine in 3.1.2 on that machine.

--
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue7991>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7991] test_ntpath fails on Windows XP

2010-07-15 Thread Austin English

Austin English  added the comment:

Runs fine in 3.1.2 on that machine.

--

___
Python tracker 
<http://bugs.python.org/issue7991>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7645] test_distutils fails on Windows XP

2010-07-15 Thread Austin English

Austin English  added the comment:

Still present in 3.1.2.

--
Added file: http://bugs.python.org/file18022/distutils.txt

___
Python tracker 
<http://bugs.python.org/issue7645>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com