summaryrefslogtreecommitdiff
path: root/pylint/test
diff options
context:
space:
mode:
authorCezar <devnull@localhost>2015-10-04 14:20:45 +0300
committerCezar <devnull@localhost>2015-10-04 14:20:45 +0300
commit27a324aa21af1dbdd54ebb2139c666e3e3d64ef9 (patch)
tree961a11c0808134399f92894cbd8dd012cb3d339f /pylint/test
parent95ee5b2825c1de2e2fd988c9fa8f6c41394a2823 (diff)
downloadpylint-27a324aa21af1dbdd54ebb2139c666e3e3d64ef9.tar.gz
Add functional tests for PEP 448
Diffstat (limited to 'pylint/test')
-rw-r--r--pylint/test/functional/star_needs_assignment_target_py35.py7
-rw-r--r--pylint/test/functional/star_needs_assignment_target_py35.rc2
-rw-r--r--pylint/test/functional/star_needs_assignment_target_py35.txt0
3 files changed, 9 insertions, 0 deletions
diff --git a/pylint/test/functional/star_needs_assignment_target_py35.py b/pylint/test/functional/star_needs_assignment_target_py35.py
new file mode 100644
index 0000000..7188c55
--- /dev/null
+++ b/pylint/test/functional/star_needs_assignment_target_py35.py
@@ -0,0 +1,7 @@
+"""
+Test PEP 0448 -- Additional Unpacking Generalizations
+https://www.python.org/dev/peps/pep-0448/
+"""
+UNPACK_TUPLE = (*range(4), 4)
+UNPACK_LIST = [*range(4), 4]
+UNPACK_DICT = {*range(4), 4}
diff --git a/pylint/test/functional/star_needs_assignment_target_py35.rc b/pylint/test/functional/star_needs_assignment_target_py35.rc
new file mode 100644
index 0000000..71de8b6
--- /dev/null
+++ b/pylint/test/functional/star_needs_assignment_target_py35.rc
@@ -0,0 +1,2 @@
+[testoptions]
+min_pyver=3.5
diff --git a/pylint/test/functional/star_needs_assignment_target_py35.txt b/pylint/test/functional/star_needs_assignment_target_py35.txt
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/pylint/test/functional/star_needs_assignment_target_py35.txt