summaryrefslogtreecommitdiff
path: root/tests/test_self.py
diff options
context:
space:
mode:
authorHugues <hugues.bruant@affirm.com>2019-11-04 00:06:12 -0800
committerClaudiu Popa <pcmanticore@gmail.com>2019-11-04 09:06:12 +0100
commit481be93dfc3622e1fb9f807f0774a3fa940eb57d (patch)
tree0cdbaaabb044c3be9e08ed4e264ed0d131c293de /tests/test_self.py
parent96b3892506de6033ecb4f6e288bd4f5b211d894c (diff)
downloadpylint-git-481be93dfc3622e1fb9f807f0774a3fa940eb57d.tar.gz
Fix py3k (#3210)
Enable syntax errors to properly surface invalid code in py3 porting mode, instead of silently swallowing them and giving the incorrect impression that the code is valid for py3. Closes #2956
Diffstat (limited to 'tests/test_self.py')
-rw-r--r--tests/test_self.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_self.py b/tests/test_self.py
index 9269ab650..6ce5e7dae 100644
--- a/tests/test_self.py
+++ b/tests/test_self.py
@@ -245,14 +245,14 @@ class TestRunTC(object):
# Test that --py3k flag works.
rc_code = 0
self._runtest(
- [join(HERE, "functional", "u", "unpacked_exceptions.py"), "--py3k"],
+ [join(HERE, "functional", "u", "unnecessary_lambda.py"), "--py3k"],
code=rc_code,
)
def test_py3k_jobs_option(self):
rc_code = 0
self._runtest(
- [join(HERE, "functional", "u", "unpacked_exceptions.py"), "--py3k", "-j 2"],
+ [join(HERE, "functional", "u", "unnecessary_lambda.py"), "--py3k", "-j 2"],
code=rc_code,
)