From: Antoine Pitrou Date: Fri, 13 Jul 2012 19:08:41 +0000 (+0200) Subject: Issue #15334: skip test_dynamic_key when run in non-interactive mode. X-Git-Tag: v2.7.4rc1~702 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8412c84c7a6d853cb5295e1bddd3210abd943ab;p=thirdparty%2FPython%2Fcpython.git Issue #15334: skip test_dynamic_key when run in non-interactive mode. Patch by Jeremy Kloth. --- diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py index 12ab3baadac5..629c0aa56113 100644 --- a/Lib/test/test_winreg.py +++ b/Lib/test/test_winreg.py @@ -280,6 +280,7 @@ class LocalWinregTests(BaseWinregTests): DeleteKey(key, name) DeleteKey(HKEY_CURRENT_USER, test_key_name) + @unittest.skipUnless('PROMPT' in os.environ, "Requires interactive session") def test_dynamic_key(self): # Issue2810, when the value is dynamically generated, these # throw "WindowsError: More data is available" in 2.6 and 3.1