This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_uuid fails with pywin32 installed
Type: behavior Stage: needs patch
Components: Library (Lib), Windows Versions: Python 3.4
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: paul.moore, serhiy.storchaka, steve.dower, tim.golden, vstinner, zach.ware
Priority: normal Keywords:

Created on 2015-09-14 04:23 by zach.ware, last changed 2022-04-11 14:58 by admin.

Messages (4)
msg250612 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-09-14 04:23
With installed Python with pywin32 installed:

======================================================================
ERROR: test_netbios_getnode (test.test_uuid.TestInternals)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Python34\lib\test\test_uuid.py", line 479, in test_netbios_getnode
    node = uuid._netbios_getnode()
  File "C:\Python34\lib\uuid.py", line 432, in _netbios_getnode
    adapters._pack()
  File "C:\Python34\lib\site-packages\win32\lib\netbios.py", line 219, in _pack
    self._buffer_[:] = struct.pack(*(self._format,) + tuple(vals))
struct.error: argument for 's' must be a bytes object

Assumed to affect all 3.x versions, but only confirmed on 3.4.
msg250634 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-09-14 06:32
Looks as a bug in pywin32.
msg303237 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2017-09-28 13:44
Zachary: any update on this issue? Is it still a bug?
msg303256 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2017-09-28 15:21
Still fails on Python 3.6.1 with pypiwin32-220; those are the versions I have handy to check on.  I've not managed to report it to pywin32 or look into it any deeper, though.  If someone can confirm that it's definitely their bug, this can be closed as third-party.
History
Date User Action Args
2022-04-11 14:58:20adminsetgithub: 69285
2017-09-28 15:21:44zach.waresetmessages: + msg303256
2017-09-28 13:44:53vstinnersetnosy: + vstinner
messages: + msg303237
2015-09-14 06:32:54serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg250634
2015-09-14 04:23:54zach.warecreate