diff options
Diffstat (limited to 'tests/testdata/python3/data')
| -rw-r--r-- | tests/testdata/python3/data/conditional.py | 6 | ||||
| -rw-r--r-- | tests/testdata/python3/data/conditional_import/__init__.py | 11 |
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/testdata/python3/data/conditional.py b/tests/testdata/python3/data/conditional.py new file mode 100644 index 00000000..8f607c23 --- /dev/null +++ b/tests/testdata/python3/data/conditional.py @@ -0,0 +1,6 @@ +from data.conditional_import import ( + dump, + # dumps, + # load, + # loads, +)
\ No newline at end of file diff --git a/tests/testdata/python3/data/conditional_import/__init__.py b/tests/testdata/python3/data/conditional_import/__init__.py new file mode 100644 index 00000000..38306e34 --- /dev/null +++ b/tests/testdata/python3/data/conditional_import/__init__.py @@ -0,0 +1,11 @@ + +from pprint import pformat + +if False: + + def dump(obj, file, protocol=None): + pass + +else: + from functools import partial + dump = partial(pformat, indent=0) |
