Skip to content

Commit cb82fb4

Browse files
committed
run the test() routine in install_util.py.
1 parent 8a3770e commit cb82fb4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

roundup/install_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def test():
150150

151151
mod = open(testfile, 'r+b')
152152
mod.seek(0)
153-
mod.write('# changed!')
153+
mod.write(s2b('# changed!'))
154154
mod.close()
155155

156156
assert not checkDigest(testfile), "digest fails after modification"

test/test_misc.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from roundup.anypy.strings import StringIO # define StringIO
1010
from roundup.cgi import cgitb
1111
from roundup.cgi.accept_language import parse
12-
12+
from roundup import install_util
1313

1414
class AcceptLanguageTest(unittest.TestCase):
1515
def testParse(self):
@@ -207,3 +207,7 @@ def notest_html(self):
207207
self.assertEqual(expected3, h)
208208
else:
209209
self.assertEqual(expected2, h)
210+
211+
class InstallUtilTest(unittest.TestCase):
212+
def test_run_test(self):
213+
install_util.test()

0 commit comments

Comments
 (0)