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
884554df
Kaydet (Commit)
884554df
authored
Eyl 30, 2002
tarafından
Jason Tishler
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Patch #544740: test_commands test fails under Cygwin
Relax regular expression to handle spaces in user and group names.
üst
b45b9fea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
test_commands.py
Lib/test/test_commands.py
+7
-5
No files found.
Lib/test/test_commands.py
Dosyayı görüntüle @
884554df
...
@@ -38,13 +38,15 @@ class CommandTests(unittest.TestCase):
...
@@ -38,13 +38,15 @@ class CommandTests(unittest.TestCase):
def
test_getstatus
(
self
):
def
test_getstatus
(
self
):
# This pattern should match 'ls -ld /.' on any posix
# This pattern should match 'ls -ld /.' on any posix
# system, however perversely configured.
# system, however perversely configured. Even on systems
# (e.g., Cygwin) where user and group names can have spaces:
# drwxr-xr-x 15 Administ Domain U 4096 Aug 12 12:50 /
# drwxr-xr-x 15 Joe User My Group 4096 Aug 12 12:50 /
# Note that the first case above has a space in the group name
# while the second one has a space in both names.
pat
=
r'''d......... # It is a directory.
pat
=
r'''d......... # It is a directory.
\s+\d+ # It has some number of links.
\s+\d+ # It has some number of links.
\s+\w+\s+\w+ # It has a user and group, which may
[^/]* # Skip user, group, size, and date.
# be named anything.
\s+\d+ # It has a size.
[^/]* # Skip the date.
/\. # and end with the name of the file.
/\. # and end with the name of the file.
'''
'''
...
...
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