diff options
| author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-12 21:29:27 +0200 |
|---|---|---|
| committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-12 21:29:27 +0200 |
| commit | c4e33851523d13a7359681f754c8cf63fbf44b6f (patch) | |
| tree | 731475c45e57d2bea0f3dcbdf122a0096fd382e4 /test | |
| parent | a2854ec66e8f92917a8b279552f1d4bc8b67a81f (diff) | |
| download | pylint-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.py | 8 |
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() |
