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
b2fcebb0
Kaydet (Commit)
b2fcebb0
authored
Agu 01, 2013
tarafından
Tim Golden
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
issue9035: Prevent Windows-specific tests from running on non-Windows platforms
üst
6b528067
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
test_ntpath.py
Lib/test/test_ntpath.py
+16
-16
No files found.
Lib/test/test_ntpath.py
Dosyayı görüntüle @
b2fcebb0
...
...
@@ -274,22 +274,22 @@ class TestNtpath(unittest.TestCase):
with
support
.
temp_dir
()
as
d
:
self
.
assertFalse
(
ntpath
.
ismount
(
d
))
#
# Make sure the current folder isn't the root folder
# (or any other volume root). The drive-relative
# locations below cannot then refer to mount points
#
drive
,
path
=
ntpath
.
splitdrive
(
sys
.
executable
)
with
support
.
change_cwd
(
os
.
path
.
dirname
(
sys
.
executable
)):
self
.
assertFalse
(
ntpath
.
ismount
(
drive
.
lower
()))
self
.
assertFalse
(
ntpath
.
ismount
(
drive
.
upp
er
()))
self
.
assertTrue
(
ntpath
.
ismount
(
"
\\\\
localhost
\\
c$"
))
self
.
assertTrue
(
ntpath
.
ismount
(
"
\\\\
localhost
\\
c$
\\
"
))
self
.
assertTrue
(
ntpath
.
ismount
(
b
"
\\\\
localhost
\\
c$"
))
self
.
assertTrue
(
ntpath
.
ismount
(
b
"
\\\\
localhost
\\
c$
\\
"
))
if
sys
.
platform
==
"win32"
:
#
# Make sure the current folder isn't the root folder
# (or any other volume root). The drive-relative
# locations below cannot then refer to mount points
#
drive
,
path
=
ntpath
.
splitdrive
(
sys
.
executable
)
with
support
.
change_cwd
(
os
.
path
.
dirname
(
sys
.
executable
)):
self
.
assertFalse
(
ntpath
.
ismount
(
drive
.
low
er
()))
self
.
assertFalse
(
ntpath
.
ismount
(
drive
.
upper
()))
self
.
assertTrue
(
ntpath
.
ismount
(
"
\\\\
localhost
\\
c$
"
))
self
.
assertTrue
(
ntpath
.
ismount
(
"
\\\\
localhost
\\
c$
\\
"
))
self
.
assertTrue
(
ntpath
.
ismount
(
b
"
\\\\
localhost
\\
c$
"
))
self
.
assertTrue
(
ntpath
.
ismount
(
b
"
\\\\
localhost
\\
c$
\\
"
))
class
NtCommonTest
(
test_genericpath
.
CommonTest
,
unittest
.
TestCase
):
pathmodule
=
ntpath
...
...
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