Cosimo Lupo
d3251241be
[py23] Add backports for redirect_stdout/stderr context managers
2017-11-07 11:54:28 +00:00
Cosimo Lupo
2e4b1d05df
[timeTools_test] use pytest.raises to catch ValueError
2017-10-02 14:19:01 +01:00
Khaled Hosny
4b3a2eb1d9
Respect SOURCE_DATE_EPOCH for time stamp
...
For reproducible builds, check the presence of SOURCE_DATE_EPOCH
environment variable and use it for the time stamp. This affects the
head.modified (and head.created in merge.py).
See https://reproducible-builds.org/specs/source-date-epoch/
2017-10-02 11:37:00 +02:00
Masaya Nakamura
3708f2c8d3
Don't cache charString bounds
...
https://github.com/fonttools/fonttools/pull/970#discussion_r117903692
2017-08-01 10:54:47 +09:00
Masaya Nakamura
a68bfc2458
[psCharStrings] Add recalcBounds() to T2CharString
2017-08-01 10:51:47 +09:00
Behdad Esfahbod
f056c124e5
[misc.classifyTools] Make classification order stable
...
Sets don't have a welldefined comparison function, so sort them...
Not the most efficient implementation, but good enough.
Fixes https://github.com/fonttools/fonttools/issues/927
2017-04-18 15:57:14 -07:00
Cosimo Lupo
cca1d20b0e
[loggingTools] added LogMixin class
...
This is useful to quickly add logging functionality to classes, and
to reduce boilerplate.
It adds a 'log' property to the class inheriting from it, which uses
logging.getLogger to get a logging.Logger (sigleton) object named after
<module>.<class> of self.
2017-04-11 18:40:52 +01:00
Cosimo Lupo
8df708269f
[loggingTools_test] give more time to TimerTest::test_split
...
timers can be capricious...
https://travis-ci.org/fonttools/fonttools/jobs/195116432#L1265-L1278
2017-01-25 10:07:09 +00:00
Cosimo Lupo
98013fe526
[loggingTools_test] don't assert exact clock times
...
Windows timer can be imprecise:
https://ci.appveyor.com/project/fonttools/fonttools/build/1.0.419/job/vlpd9qv07384w5sl
2017-01-17 14:12:14 +00:00
Cosimo Lupo
cf5807bb94
[Tests] covert transform doctests into transform_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
99a9cb901a
[Tests] covert timeTools doctests into timeTools_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
34474743f5
[Tests] covert textTools doctests into textTools_test.py
2017-01-17 13:39:36 +00:00
Cosimo Lupo
7a62f04adf
[Tests] covert py23 doctests to unittest and add to py23_test.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
29141af3a9
[Tests] convert loggingTools doctests into loggingTools.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
8b0130ccb3
[Tests] convert eexec doctests into eexec_test.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
f22722ae51
[Tests] convert classifyTools doctests into bezierTools_test.py
2017-01-17 13:39:35 +00:00
Cosimo Lupo
3e23cc7bd6
[Tests] convert bezierTools doctests into bezierTools_test.py
2017-01-17 13:39:34 +00:00
Cosimo Lupo
4973060af0
[Tests] convert arrayTools doctests into arrayTools_test.py
2017-01-17 13:39:34 +00:00
Cosimo Lupo
e1d340cc65
[Tests] use absolute imports and add __init__.py where relevant
...
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
2017-01-16 09:14:13 +00:00
Cosimo Lupo
78ad48eaf3
Move all *_test.py modules and test data to external Tests/ folder
2017-01-16 09:14:12 +00:00