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
11c5afd1
Kaydet (Commit)
11c5afd1
authored
Şub 07, 2014
tarafından
Nick Coghlan
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #20053: Mark as an expected failure for 3.4
üst
96252cd7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
test_venv.py
Lib/test/test_venv.py
+12
-2
No files found.
Lib/test/test_venv.py
Dosyayı görüntüle @
11c5afd1
...
...
@@ -28,6 +28,12 @@ except ImportError:
skipInVenv
=
unittest
.
skipIf
(
sys
.
prefix
!=
sys
.
base_prefix
,
'Test not appropriate in a venv'
)
# os.path.exists('nul') is False: http://bugs.python.org/issue20541
if
os
.
devnull
.
lower
()
==
'nul'
:
failsOnWindows
=
unittest
.
expectedFailure
else
:
def
failsOnWindows
(
f
):
return
f
class
BaseTest
(
unittest
.
TestCase
):
"""Base class for venv tests."""
...
...
@@ -288,9 +294,12 @@ class EnsurePipTest(BaseTest):
self
.
run_with_capture
(
venv
.
create
,
self
.
env_dir
,
with_pip
=
False
)
self
.
assert_pip_not_installed
()
@failsOnWindows
def
test_devnull_exists_and_is_empty
(
self
):
# Fix for issue #20053 uses os.devnull to force a config file to
# appear empty. Make sure that assumption is valid cross platform.
# appear empty. However http://bugs.python.org/issue20541 means
# that doesn't currently work properly on Windows. Once that is
# fixed, the "win_location" part of test_with_pip should be restored
self
.
assertTrue
(
os
.
path
.
exists
(
os
.
devnull
))
with
open
(
os
.
devnull
,
"rb"
)
as
f
:
self
.
assertEqual
(
f
.
read
(),
b
""
)
...
...
@@ -319,7 +328,8 @@ class EnsurePipTest(BaseTest):
# cross-platform variation in test code behaviour
win_location
=
(
"pip"
,
"pip.ini"
)
posix_location
=
(
".pip"
,
"pip.conf"
)
for
dirname
,
fname
in
(
win_location
,
posix_location
):
# Skips win_location due to http://bugs.python.org/issue20541
for
dirname
,
fname
in
(
posix_location
,):
dirpath
=
os
.
path
.
join
(
home_dir
,
dirname
)
os
.
mkdir
(
dirpath
)
fpath
=
os
.
path
.
join
(
dirpath
,
fname
)
...
...
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