summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzyman <devnull@localhost>2010-02-27 18:52:08 +0000
committerfuzzyman <devnull@localhost>2010-02-27 18:52:08 +0000
commitb5bc74d538a40a1dfecf3dcb6e35c17b747d36f5 (patch)
tree00f52a7b850b9e9a55a434561782c036d6302040
parent0dba17be394e6e457a1f922b9a22e722e7781783 (diff)
downloadconfigobj-b5bc74d538a40a1dfecf3dcb6e35c17b747d36f5.tar.gz
Test for repr interpolation bug
-rw-r--r--docs/configobj.txt2
-rw-r--r--functionaltests/test_configobj.py6
2 files changed, 8 insertions, 0 deletions
diff --git a/docs/configobj.txt b/docs/configobj.txt
index 95d54ab..474c946 100644
--- a/docs/configobj.txt
+++ b/docs/configobj.txt
@@ -2399,6 +2399,8 @@ From version 4 it lists all releases and changes.
* BUGFIX: ``pop`` now does interpolation in list values as well.
* BUGFIX: where interpolation matches a section name rather than a value it is
ignored instead of raising an exception on fetching the item.
+* BUGFIX: values that use interpolation to reference members that don't exist can
+ now be repr'd.
2010/02/06 - Version 4.7.1
--------------------------
diff --git a/functionaltests/test_configobj.py b/functionaltests/test_configobj.py
index 81e5441..8528028 100644
--- a/functionaltests/test_configobj.py
+++ b/functionaltests/test_configobj.py
@@ -78,6 +78,12 @@ item1 = 1234
# This raises an exception in 4.7.1 and earlier
repr(c)
+
+ def test_interoplation_repr(self):
+ c = ConfigObj(['foo = $bar'], interpolation='Template')
+
+ # This raises an exception in 4.7.1 and earlier
+ repr(c)