From 045edf1c661b09957e4f87c37981b209a29512ae Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sun, 31 Aug 2014 10:44:16 +0100 Subject: Fix support on different Python versions --- tests/mammoth_tests.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'tests/mammoth_tests.py') diff --git a/tests/mammoth_tests.py b/tests/mammoth_tests.py index f744711..70fac7d 100644 --- a/tests/mammoth_tests.py +++ b/tests/mammoth_tests.py @@ -1,5 +1,7 @@ # coding=utf-8 +from __future__ import unicode_literals + from nose.tools import istest, assert_equal from .testing import test_path @@ -58,11 +60,11 @@ def word_tables_are_converted_to_html_tables(): @istest def footnotes_are_appended_to_text(): # TODO: don't duplicate footnotes with multiple references - expected_html = (u'

Ouch' + - u'[1].' + - u'[2]

' + - u'
  1. A tachyon walks into a bar. ↑

  2. ' + - u'
  3. Fin. ↑

') + expected_html = ('

Ouch' + + '[1].' + + '[2]

' + + '
  1. A tachyon walks into a bar. ↑

  2. ' + + '
  3. Fin. ↑

') with open(test_path("footnotes.docx"), "rb") as fileobj: result = mammoth.convert_to_html(fileobj=fileobj, generate_uniquifier=lambda: 42) -- cgit v1.2.3