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
dda7fdf1
Kaydet (Commit)
dda7fdf1
authored
Eyl 23, 2010
tarafından
Hirokazu Yamamoto
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Skip estLoadWithUNC when UNC is not available.
üst
b3b390d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test_tcl.py
Lib/test/test_tcl.py
+5
-5
No files found.
Lib/test/test_tcl.py
Dosyayı görüntüle @
dda7fdf1
#!/usr/bin/env python3
import
unittest
import
sys
import
os
from
test
import
support
...
...
@@ -127,21 +128,20 @@ class TclTest(unittest.TestCase):
tcl
=
self
.
interp
self
.
assertRaises
(
TclError
,
tcl
.
eval
,
'package require DNE'
)
@unittest.skipUnless
(
sys
.
platform
==
'win32'
,
'Requires Windows'
)
def
testLoadWithUNC
(
self
):
import
sys
if
sys
.
platform
!=
'win32'
:
return
# Build a UNC path from the regular path.
# Something like
# \\%COMPUTERNAME%\c$\python27\python.exe
fullname
=
os
.
path
.
abspath
(
sys
.
executable
)
if
fullname
[
1
]
!=
':'
:
r
eturn
r
aise
unittest
.
SkipTest
(
'Absolute path should have drive part'
)
unc_name
=
r'\\
%
s\%s$\%s'
%
(
os
.
environ
[
'COMPUTERNAME'
],
fullname
[
0
],
fullname
[
3
:])
if
not
os
.
path
.
exists
(
unc_name
):
raise
unittest
.
SkipTest
(
'Cannot connect to UNC Path'
)
with
support
.
EnvironmentVarGuard
()
as
env
:
env
.
unset
(
"TCL_LIBRARY"
)
...
...
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