Skip to content

Commit

Permalink
test_tools: import configparser
Browse files Browse the repository at this point in the history
  • Loading branch information
Exirel committed Jun 5, 2021
1 parent 8e399a2 commit dc1aedd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions sopel/test_tools.py
Original file line number Diff line number Diff line change
@@ -19,15 +19,11 @@
# Licensed under the Eiffel Forum License 2.
from __future__ import generator_stop

import configparser
import os
import re
import tempfile

try:
import ConfigParser
except ImportError:
import configparser as ConfigParser

from sopel import bot, config, tools


@@ -46,7 +42,7 @@ class MockConfig(config.Config):
@tools.deprecated('use configfactory fixture instead', '7.0', '8.0')
def __init__(self):
self.filename = tempfile.mkstemp()[1]
self.parser = ConfigParser.RawConfigParser(allow_no_value=True)
self.parser = configparser.RawConfigParser(allow_no_value=True)
self.parser.add_section('core')
self.parser.set('core', 'owner', 'Embolalia')
self.define_section('core', config.core_section.CoreSection)

0 comments on commit dc1aedd

Please sign in to comment.