New submission from Terry J. Reedy:

On my Win10-64 machine, test_winreg hangs, impervious to ^C.  I have to close 
Command Prompt.  (With IDLE I can run just test_winreg and then Restart Shell.) 
 This happened with repository builds last Friday and today, and with installed 
3.6.2rc1.  But I believe I ran the entire test suite (to successful completion) 
not too many days before.

The culprit is

    def test_dynamic_key(self):
        # Issue2810, when the value is dynamically generated, these
        # raise "WindowsError: More data is available" in 2.6 and 3.1
        try:
            EnumValue(HKEY_PERFORMANCE_DATA, 0)
        except OSError as e:
            if e.errno in (errno.EPERM, errno.EACCES):
                self.skipTest("access denied to registry key "
                              "(are you running in a non-interactive session?)")
            raise
        QueryValueEx(HKEY_PERFORMANCE_DATA, "")

Commenting out the whole function or both the EnumValue and QueryValueEx calls 
(replacing the former with pass) is required to allow the test to run (and 
pass).

I have no idea why behavior on my machine is different from buildbots.  If the 
problem is with my registry, could the test be more robust?  Having to kill my 
console session, and lose history, after running the test suite, is unpleasant.

----------
components: Tests
messages: 296474
nosy: ned.deily, paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: release blocker
severity: normal
status: open
title: Test_winreg, test_dynamic_key hangs on my Win 10
type: behavior
versions: Python 3.6, Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30715>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to