Browse Source

Make _test_tokenizer import relative so tests work on py3k.

tags/v0.2
Ben Kurtovic 11 years ago
parent
commit
eae6f11add
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      tests/test_ctokenizer.py
  2. +1
    -1
      tests/test_pytokenizer.py

+ 1
- 1
tests/test_ctokenizer.py View File

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


from _test_tokenizer import TokenizerTestCase
from ._test_tokenizer import TokenizerTestCase


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


+ 1
- 1
tests/test_pytokenizer.py View File

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


from mwparserfromhell.parser.tokenizer import Tokenizer from mwparserfromhell.parser.tokenizer import Tokenizer


from _test_tokenizer import TokenizerTestCase
from ._test_tokenizer import TokenizerTestCase


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


Loading…
Cancel
Save