Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2bb30218
Kaydet (Commit)
2bb30218
authored
Tem 13, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Try other approach to fix issue #15334.
üst
924ae1b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
test_winreg.py
Lib/test/test_winreg.py
+8
-3
No files found.
Lib/test/test_winreg.py
Dosyayı görüntüle @
2bb30218
# 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
support
threading
=
support
.
import_module
(
"threading"
)
...
...
@@ -289,11 +289,16 @@ class LocalWinregTests(BaseWinregTests):
DeleteKey
(
HKEY_CURRENT_USER
,
'
\\
'
.
join
((
test_key_name
,
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
EnumValue
(
HKEY_PERFORMANCE_DATA
,
0
)
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
,
""
)
# 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