summaryrefslogtreecommitdiff
path: root/test/regrtest_data
diff options
context:
space:
mode:
authorsyt <syt@localhost.localdomain>2006-11-23 16:08:14 +0100
committersyt <syt@localhost.localdomain>2006-11-23 16:08:14 +0100
commit1c5abb2841377c9cf56c55646afe995b7ecd777d (patch)
tree341d6bdd68d0a13d23c9f711a839eb4dfc644240 /test/regrtest_data
parentf4fe50e016cb3024cdb59416f43778bf7e04be82 (diff)
downloadpylint-1c5abb2841377c9cf56c55646afe995b7ecd777d.tar.gz
fix E1011 duplication pb
Diffstat (limited to 'test/regrtest_data')
-rw-r--r--test/regrtest_data/decimal_inference.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/regrtest_data/decimal_inference.py b/test/regrtest_data/decimal_inference.py
new file mode 100644
index 0000000..124d65a
--- /dev/null
+++ b/test/regrtest_data/decimal_inference.py
@@ -0,0 +1,8 @@
+"""hum E1011 on .prec member is justifiable since Context instance are built
+using setattr/locals :(
+"""
+import decimal
+
+decimal.getcontext().prec = 200
+print decimal.getcontext().prec
+