summaryrefslogtreecommitdiff
path: root/tests/input/func_nonregr___file___global.py
diff options
context:
space:
mode:
authorAshley Whetter <ashley@awhetter.co.uk>2019-06-14 22:28:42 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2019-06-20 10:02:14 +0200
commit33b8185a455c1686d038258697bb93005f2441c2 (patch)
tree4a50ccac775c009436e45803129e428ed694065f /tests/input/func_nonregr___file___global.py
parent7081d91f30728653000bdfc59ea85a3395f96418 (diff)
downloadpylint-git-33b8185a455c1686d038258697bb93005f2441c2.tar.gz
Stopped installing tests with package
Diffstat (limited to 'tests/input/func_nonregr___file___global.py')
-rw-r--r--tests/input/func_nonregr___file___global.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/input/func_nonregr___file___global.py b/tests/input/func_nonregr___file___global.py
new file mode 100644
index 000000000..910033c4a
--- /dev/null
+++ b/tests/input/func_nonregr___file___global.py
@@ -0,0 +1,8 @@
+"""test no crash on __file__ global"""
+
+def func():
+ """override __file__"""
+ global __file__
+ __file__ = 'hop'
+
+__revision__ = 'pouet'