We can't use relative imports any more since the tests are now located outside the package. I had to add __init__.py to Tests/feaLib/ so that pytest does not get confused by the presence of two test files with the same basename: i.e. Tests/feaLib/builder_test.py and Tests/feaLib/builder_test.py https://github.com/pytest-dev/pytest/issues/774 http://stackoverflow.com/questions/12582503/py-test-test-discovery-failure-when-tests-in-different-directories-are-called
20 lines
469 B
Python
20 lines
469 B
Python
from __future__ import print_function, division, absolute_import
|
|
from __future__ import unicode_literals
|
|
from fontTools.misc.py23 import *
|
|
from fontTools.ttLib.tables._v_m_t_x import table__v_m_t_x
|
|
import _h_m_t_x_test
|
|
import unittest
|
|
|
|
|
|
class VmtxTableTest(_h_m_t_x_test.HmtxTableTest):
|
|
|
|
@classmethod
|
|
def setUpClass(cls):
|
|
cls.tableClass = table__v_m_t_x
|
|
cls.tag = "vmtx"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
import sys
|
|
sys.exit(unittest.main())
|