summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-01-12 21:29:27 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-01-12 21:29:27 +0200
commitc4e33851523d13a7359681f754c8cf63fbf44b6f (patch)
tree731475c45e57d2bea0f3dcbdf122a0096fd382e4 /test
parenta2854ec66e8f92917a8b279552f1d4bc8b67a81f (diff)
downloadpylint-git-c4e33851523d13a7359681f754c8cf63fbf44b6f.tar.gz
Check the number of arguments before attempting to obtain the first one.
Diffstat (limited to 'test')
-rw-r--r--test/functional/redundant_unittest_assert.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/redundant_unittest_assert.py b/test/functional/redundant_unittest_assert.py
index 4628824b2..2eb73e3d4 100644
--- a/test/functional/redundant_unittest_assert.py
+++ b/test/functional/redundant_unittest_assert.py
@@ -28,3 +28,11 @@ class Tests(unittest.TestCase):
self.assertTrue('should be' in some_var, some_var)
self.assertTrue(some_var, some_var)
+
+
+@unittest.skip("don't run this")
+class RegressionWithArgs(unittest.TestCase):
+ '''Don't fail if the bound method doesn't have arguments.'''
+
+ def test(self):
+ self.run()