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
75a832d4
Kaydet (Commit)
75a832d4
authored
Tem 27, 2006
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Make uuid test suite pass on this box by requesting output with LC_ALL=C.
üst
6cea7d74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
test_uuid.py
Lib/test/test_uuid.py
+6
-2
uuid.py
Lib/uuid.py
+4
-1
No files found.
Lib/test/test_uuid.py
Dosyayı görüntüle @
75a832d4
...
@@ -288,12 +288,16 @@ class TestUUID(TestCase):
...
@@ -288,12 +288,16 @@ class TestUUID(TestCase):
def
test_ifconfig_getnode
(
self
):
def
test_ifconfig_getnode
(
self
):
import
os
import
os
if
os
.
name
==
'posix'
:
if
os
.
name
==
'posix'
:
self
.
check_node
(
uuid
.
_ifconfig_getnode
(),
'ifconfig'
)
node
=
uuid
.
_ifconfig_getnode
()
if
node
is
not
None
:
self
.
check_node
(
node
,
'ifconfig'
)
def
test_ipconfig_getnode
(
self
):
def
test_ipconfig_getnode
(
self
):
import
os
import
os
if
os
.
name
==
'nt'
:
if
os
.
name
==
'nt'
:
self
.
check_node
(
uuid
.
_ipconfig_getnode
(),
'ipconfig'
)
node
=
uuid
.
_ipconfig_getnode
()
if
node
is
not
None
:
self
.
check_node
(
node
,
'ipconfig'
)
def
test_netbios_getnode
(
self
):
def
test_netbios_getnode
(
self
):
if
importable
(
'win32wnet'
)
and
importable
(
'netbios'
):
if
importable
(
'win32wnet'
)
and
importable
(
'netbios'
):
...
...
Lib/uuid.py
Dosyayı görüntüle @
75a832d4
...
@@ -276,7 +276,10 @@ def _ifconfig_getnode():
...
@@ -276,7 +276,10 @@ def _ifconfig_getnode():
import
os
import
os
for
dir
in
[
''
,
'/sbin/'
,
'/usr/sbin'
]:
for
dir
in
[
''
,
'/sbin/'
,
'/usr/sbin'
]:
try
:
try
:
pipe
=
os
.
popen
(
os
.
path
.
join
(
dir
,
'ifconfig'
))
# LC_ALL to get English output, 2>/dev/null to
# prevent output on stderr
cmd
=
'LC_ALL=C
%
s 2>/dev/null'
%
os
.
path
.
join
(
dir
,
'ifconfig'
)
pipe
=
os
.
popen
(
cmd
)
except
IOError
:
except
IOError
:
continue
continue
for
line
in
pipe
:
for
line
in
pipe
:
...
...
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