Przeglądaj źródła

Make _test_tokenizer import relative so tests work on py3k.

tags/v0.2
Ben Kurtovic 11 lat temu
rodzic
commit
eae6f11add
2 zmienionych plików z 2 dodań i 2 usunięć
  1. +1
    -1
      tests/test_ctokenizer.py
  2. +1
    -1
      tests/test_pytokenizer.py

+ 1
- 1
tests/test_ctokenizer.py Wyświetl plik

@@ -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 Wyświetl plik

@@ -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."""


Ładowanie…
Anuluj
Zapisz