summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2019-01-17 15:38:03 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2019-01-17 15:38:03 +0100
commit206f59423bf84d0ba41dca2207569ac4a14c6ece (patch)
treede6493544db193b0608f33d0b26c0b39b955c002
parentd99af7f7cdc3cdc7a437fa0351d41aaa8226fc14 (diff)
downloadpylint-git-206f59423bf84d0ba41dca2207569ac4a14c6ece.tar.gz
Add test that a recursion error does not happen any longer. Close #2463
-rw-r--r--pylint/test/functional/recursion_error_crash.py9
-rw-r--r--pylint/test/functional/recursion_error_crash.txt0
2 files changed, 9 insertions, 0 deletions
diff --git a/pylint/test/functional/recursion_error_crash.py b/pylint/test/functional/recursion_error_crash.py
new file mode 100644
index 000000000..208bc2e7a
--- /dev/null
+++ b/pylint/test/functional/recursion_error_crash.py
@@ -0,0 +1,9 @@
+"""Test that a recursion error does not happen
+
+https://github.com/PyCQA/pylint/issues/2463
+"""
+import os
+
+ABC = os.path.realpath('abc')
+DEF = os.path.realpath(ABC + 'def')
+GHI = os.path.join(DEF, 'ghi')
diff --git a/pylint/test/functional/recursion_error_crash.txt b/pylint/test/functional/recursion_error_crash.txt
new file mode 100644
index 000000000..e69de29bb
--- /dev/null
+++ b/pylint/test/functional/recursion_error_crash.txt