Explorar el Código

Make _test_tokenizer import relative so tests work on py3k.

tags/v0.2
Ben Kurtovic hace 11 años
padre
commit
eae6f11add
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      tests/test_ctokenizer.py
  2. +1
    -1
      tests/test_pytokenizer.py

+ 1
- 1
tests/test_ctokenizer.py Ver fichero

@@ -28,7 +28,7 @@ try:
except ImportError:
CTokenizer = None

from _test_tokenizer import TokenizerTestCase
from ._test_tokenizer import TokenizerTestCase

@unittest.skipUnless(CTokenizer, "C tokenizer not available")
class TestCTokenizer(TokenizerTestCase, unittest.TestCase):


+ 1
- 1
tests/test_pytokenizer.py Ver fichero

@@ -25,7 +25,7 @@ import unittest

from mwparserfromhell.parser.tokenizer import Tokenizer

from _test_tokenizer import TokenizerTestCase
from ._test_tokenizer import TokenizerTestCase

class TestPyTokenizer(TokenizerTestCase, unittest.TestCase):
"""Test cases for the Python tokenizer."""


Cargando…
Cancelar
Guardar