Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f526297d
Commit
f526297d
authored
Jul 13, 2012
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try other approach to fix issue #15334.
parent
e608e314
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
Lib/test/test_winreg.py
Lib/test/test_winreg.py
+8
-3
No files found.
Lib/test/test_winreg.py
View file @
f526297d
# Test the windows specific win32reg module.
# Only win32reg functions not hit here: FlushKey, LoadKey and SaveKey
import
os
,
sys
import
os
,
sys
,
errno
import
unittest
from
test
import
test_support
threading
=
test_support
.
import_module
(
"threading"
)
...
...
@@ -280,11 +280,16 @@ 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
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
,
None
)
# Reflection requires XP x64/Vista at a minimum. XP doesn't have this stuff
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment