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
7cf03891
Kaydet (Commit)
7cf03891
authored
Nis 16, 2010
tarafından
Mark Dickinson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #4970: move linuxthreads check outside the affected test, and use skipIf
üst
5bfe1467
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
test_os.py
Lib/test/test_os.py
+13
-10
No files found.
Lib/test/test_os.py
Dosyayı görüntüle @
7cf03891
...
...
@@ -13,6 +13,15 @@ import time
import
shutil
from
test
import
support
# Detect whether we're on a Linux system that uses the (now outdated
# and unmaintained) linuxthreads threading library. There's an issue
# when combining linuxthreads with a failed execv call: see
# http://bugs.python.org/issue4970.
if
"CS_GNU_LIBPTHREAD_VERSION"
in
os
.
confstr_names
:
libpthread
=
os
.
confstr
(
"CS_GNU_LIBPTHREAD_VERSION"
)
USING_LINUXTHREADS
=
libpthread
.
startswith
(
"linuxthreads"
)
else
:
USING_LINUXTHREADS
=
False
# Tests creating TESTFN
class
FileTests
(
unittest
.
TestCase
):
...
...
@@ -588,17 +597,11 @@ class URandomTests(unittest.TestCase):
pass
class
ExecTests
(
unittest
.
TestCase
):
@unittest.skipIf
(
USING_LINUXTHREADS
,
"avoid triggering a linuxthreads bug: see issue #4970"
)
def
test_execvpe_with_bad_program
(
self
):
try
:
# 'linuxthreads-0.10' or 'NPTL 2.10.2'
pthread
=
os
.
confstr
(
"CS_GNU_LIBPTHREAD_VERSION"
)
linuxthreads
=
pthread
.
startswith
(
"linuxthreads"
)
except
ValueError
:
linuxthreads
=
False
if
linuxthreads
:
raise
unittest
.
SkipTest
(
"avoid linuxthreads bug: see issue #4970"
)
self
.
assertRaises
(
OSError
,
os
.
execvpe
,
'no such app-'
,
[
'no such app-'
],
None
)
self
.
assertRaises
(
OSError
,
os
.
execvpe
,
'no such app-'
,
[
'no such app-'
],
None
)
def
test_execvpe_with_bad_arglist
(
self
):
self
.
assertRaises
(
ValueError
,
os
.
execvpe
,
'notepad'
,
[],
None
)
...
...
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