File: test_fix_basestring.py

package info (click to toggle)
modernize 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 416 kB
  • sloc: python: 2,016; makefile: 145
file content (18 lines) | stat: -rw-r--r-- 283 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import generator_stop

from utils import check_on_input

BASESTRING = (
    """\
isinstance(x, basestring)
""",
    """\
from __future__ import absolute_import
import six
isinstance(x, six.string_types)
""",
)


def test_basestring():
    check_on_input(*BASESTRING)