aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_unit.py
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@redhat.com>2014-01-04 19:19:18 +0100
committerMatěj Cepl <mcepl@redhat.com>2014-01-04 19:19:18 +0100
commit0f9f919c206711b767029d1aa59ae979bbb69d51 (patch)
tree72fe207bdc4774e3ddf155cf253f4c556da12adc /test/test_unit.py
parente67efc76fd37ae449cbb507fd0ef0e264e11fc36 (diff)
downloadgg_scraper-0f9f919c206711b767029d1aa59ae979bbb69d51.tar.gz
Make at least unittests running with Python 2.7
Add support for Travis-CI Fixes #283
Diffstat (limited to 'test/test_unit.py')
-rw-r--r--test/test_unit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_unit.py b/test/test_unit.py
index 9138466..70b001b 100644
--- a/test/test_unit.py
+++ b/test/test_unit.py
@@ -61,7 +61,8 @@ class TestDemangle(unittest.TestCase):
with open('unmangled.mbx') as obs_mbx_f:
with open('test/mbox_unmangled.mbx') as exp_mbx_f:
self.assertAlmostEqual(len(obs_mbx_f.read()),
- len(exp_mbx_f.read()))
+ len(exp_mbx_f.read()),
+ delta=100)
if __name__ == '__main__':
unittest.main()