Sfoglia il codice sorgente

Make _test_tokenizer import relative so tests work on py3k.

tags/v0.2
Ben Kurtovic 11 anni fa
parent
commit
eae6f11add
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      tests/test_ctokenizer.py
  2. +1
    -1
      tests/test_pytokenizer.py

+ 1
- 1
tests/test_ctokenizer.py Vedi File

@@ -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 Vedi File

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


Caricamento…
Annulla
Salva