Fix directory names to have only one trailing slash.

A regression from rev. 52525.
This commit is contained in:
Lars Gustäbel 2007-04-20 14:49:02 +00:00
parent 9701832161
commit d220144a84
3 changed files with 19 additions and 1 deletions

View file

@ -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 = "|"