瀏覽代碼

Make _test_tokenizer import relative so tests work on py3k.

tags/v0.2
Ben Kurtovic 11 年之前
父節點
當前提交
eae6f11add
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      tests/test_ctokenizer.py
  2. +1
    -1
      tests/test_pytokenizer.py

+ 1
- 1
tests/test_ctokenizer.py 查看文件

@@ -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 查看文件

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


Loading…
取消
儲存