summaryrefslogtreecommitdiff
path: root/pylint/test/functional/membership_protocol_py3.rc
diff options
context:
space:
mode:
authorDmitry Pribysh <dmand@yandex.ru>2015-10-19 17:44:10 +0300
committerDmitry Pribysh <dmand@yandex.ru>2015-10-19 17:44:10 +0300
commit816d3212d15ba297aa3a234d7874974d9f39b4bd (patch)
tree2a55cd5bb12fc49ec47919c926dca12ebf2aa3ba /pylint/test/functional/membership_protocol_py3.rc
parent5e649a112f60f3c330b5f7544b6e6286f983beca (diff)
downloadpylint-membership-test-checker.tar.gz
Add checker for membership rules and testsmembership-test-checker
Idea of checking is very simple: value used to the right of the 'in' operator should support membership test protocol (i.e. define either __contains__ or __iter__ or __getitem__). Fixes issue #589.
Diffstat (limited to 'pylint/test/functional/membership_protocol_py3.rc')
-rw-r--r--pylint/test/functional/membership_protocol_py3.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/pylint/test/functional/membership_protocol_py3.rc b/pylint/test/functional/membership_protocol_py3.rc
new file mode 100644
index 0000000..9bf6df0
--- /dev/null
+++ b/pylint/test/functional/membership_protocol_py3.rc
@@ -0,0 +1,3 @@
+[testoptions]
+min_pyver=3.0
+