Skip to content

Commit 3d14120

Browse files
committed
Removed setUp and tearDown from test_config
1 parent fc5cce6 commit 3d14120

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
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/build_osx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
mainscript = ["bitmessagemain.py"]
1010

1111
DATA_FILES = [
12-
('', ['sslkeys', 'images']),
12+
('', ['sslkeys', 'images', 'default.ini']),
1313
('bitmsghash', ['bitmsghash/bitmsghash.cl', 'bitmsghash/bitmsghash.so']),
1414
('translations', glob('translations/*.qm')),
1515
('ui', glob('bitmessageqt/*.ui')),

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)