summaryrefslogtreecommitdiff
path: root/Lib/test/test_cfgparser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_cfgparser.py')
-rw-r--r--Lib/test/test_cfgparser.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/Lib/test/test_cfgparser.py b/Lib/test/test_cfgparser.py
index 360998e058..076de4af9d 100644
--- a/Lib/test/test_cfgparser.py
+++ b/Lib/test/test_cfgparser.py
@@ -247,13 +247,8 @@ class TestCaseBase(unittest.TestCase):
cf.set("sect", "option1", mystr("splat"))
cf.set("sect", "option2", "splat")
cf.set("sect", "option2", mystr("splat"))
- try:
- str
- except NameError:
- pass
- else:
- cf.set("sect", "option1", str("splat"))
- cf.set("sect", "option2", str("splat"))
+ cf.set("sect", "option1", "splat")
+ cf.set("sect", "option2", "splat")
def test_read_returns_file_list(self):
file1 = test_support.findfile("cfgparser.1")