Skip to content

Commit 3139af4

Browse files
committed
Removed setUp and tearDown from test_config
1 parent fc5cce6 commit 3139af4

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

packages/pyinstaller/bitmessagemain.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ a.binaries += [
9494
(os.path.join('sslkeys', 'cert.pem'),
9595
os.path.join(srcPath, 'sslkeys', 'cert.pem'), 'BINARY'),
9696
(os.path.join('sslkeys', 'key.pem'),
97-
os.path.join(srcPath, 'sslkeys', 'key.pem'), 'BINARY'),
97+
os.path.join(srcPath, 'sslkeys', 'key.pem'), 'BINARY')
9898
]
9999

100100

src/tests/test_config.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,6 @@ class TestConfig(unittest.TestCase):
4040
"""A test case for bmconfigparser"""
4141
configfile = StringIO('')
4242

43-
def setUp(self):
44-
"""creates a backup of BMConfigparser current state"""
45-
config = BMConfigParser()
46-
config.write(self.configfile)
47-
self.configfile.seek(0)
48-
49-
def tearDown(self):
50-
"""restore to the backup of BMConfigparser"""
51-
config = BMConfigParser()
52-
# pylint: disable=protected-access
53-
config._reset()
54-
config.readfp(self.configfile)
55-
5643
def test_safeGet(self):
5744
"""safeGet retuns provided default for nonexistent option or None"""
5845
config = BMConfigParser()

0 commit comments

Comments
 (0)