commit | d220144a84b71d4d6a35d68b091a45780c5e5162 | [log] [tgz] |
---|---|---|
author | Lars Gustäbel <lars@gustaebel.de> | Fri Apr 20 14:49:02 2007 +0000 |
committer | Lars Gustäbel <lars@gustaebel.de> | Fri Apr 20 14:49:02 2007 +0000 |
tree | 5128f19fe2f82a94cef8a3bc7b32ffd731019dbb | |
parent | 97018321612c11ba1f795adaed125448d9ff204b [diff] |
Fix directory names to have only one trailing slash. A regression from rev. 52525.
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 692d72a..b1cbcf6 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py
@@ -191,6 +191,13 @@ 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 = "|"