test: fix a test on Windows

This commit is contained in:
Adrien Tétar 2015-11-08 11:49:06 +01:00
parent ae7ad468c0
commit 0b60503f4f
2 changed files with 4 additions and 8 deletions

View File

@ -64,7 +64,7 @@ class Glyph(object):
"""
Minimal glyph object. It has no glyph attributes until either
the draw() or the drawPoint() method has been called.
the draw() or the drawPoints() method has been called.
"""
def __init__(self, glyphName, glyphSet):

View File

@ -4153,16 +4153,12 @@ class UFO3ReadDataTestCase(unittest.TestCase):
def testUFOReaderDataDirectoryListing(self):
reader = UFOReader(self.getFontPath())
found = reader.getDataDirectoryListing()
# filter out the .svn
found = [path for path in found if ".svn" not in path]
found = list(sorted(found))
expected = [
'org.unifiedfontobject.directory/bar/lol.txt',
'org.unifiedfontobject.directory/foo.txt',
'org.unifiedfontobject.directory%(s)sbar%(s)slol.txt' % {'s': os.sep},
'org.unifiedfontobject.directory%(s)sfoo.txt' % {'s': os.sep},
'org.unifiedfontobject.file.txt'
]
expected = list(sorted(expected))
self.assertEqual(found, expected)
self.assertEqual(set(found), set(expected))
def testUFOReaderBytesFromPath(self):
reader = UFOReader(self.getFontPath())