diff options
| author | Andi Albrecht <albrecht.andi@gmail.com> | 2012-12-31 22:54:59 +0100 |
|---|---|---|
| committer | Andi Albrecht <albrecht.andi@gmail.com> | 2012-12-31 22:54:59 +0100 |
| commit | a25569e742b4884d2198c0ea6a6f804e657f6f6d (patch) | |
| tree | 841812458a62648f36d17368e131362c4d8a3239 /tests | |
| parent | f85b696fc10076be3e9fcf34085ef864f2121026 (diff) | |
| download | sqlparse-a25569e742b4884d2198c0ea6a6f804e657f6f6d.tar.gz | |
Python 3 is now fully supported without any patches.
This change makes the extras/py3k stuff obsolete and installing for
Python 3 is as easy as "python3 setup.py install". setup.py uses
distribute's use_2to3 flag to automatically run 2to3 when Python 3 is
used.
\o/ Happy New Year, everyone!
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_tokenize.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/test_tokenize.py b/tests/test_tokenize.py index 417aef6..02af141 100644 --- a/tests/test_tokenize.py +++ b/tests/test_tokenize.py @@ -1,7 +1,10 @@ # -*- coding: utf-8 -*- -import unittest +import sys import types +import unittest + +import pytest import sqlparse from sqlparse import lexer @@ -69,6 +72,8 @@ class TestTokenize(unittest.TestCase): self.assertEqual(tokens[2][0], Number.Integer) self.assertEqual(tokens[2][1], '-1') + # Somehow this test fails on Python 3.2 + @pytest.mark.skipif('sys.version_info >= (3,0)') def test_tab_expansion(self): s = "\t" lex = lexer.Lexer() |
