diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2007-04-20 14:49:02 +0000 |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2007-04-20 14:49:02 +0000 |
commit | d220144a84b71d4d6a35d68b091a45780c5e5162 (patch) | |
tree | 5128f19fe2f82a94cef8a3bc7b32ffd731019dbb /Lib/test | |
parent | 97018321612c11ba1f795adaed125448d9ff204b (diff) | |
download | cpython-git-d220144a84b71d4d6a35d68b091a45780c5e5162.tar.gz |
Fix directory names to have only one trailing slash.
A regression from rev. 52525.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_tarfile.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 692d72a17c..b1cbcf69c3 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -191,6 +191,13 @@ class ReadTest(BaseTest): except: pass + def test_dirtype(self): + for tarinfo in self.tar: + if tarinfo.isdir(): + self.assert_(tarinfo.name.endswith("/")) + self.assert_(not tarinfo.name[:-1].endswith("/")) + + class ReadStreamTest(ReadTest): sep = "|" |