Skip to content

Commit

Permalink
Fix tests in Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
sallner committed May 9, 2019
1 parent f04e24b commit fd14c66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Zope2/Startup/tests/test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def test_pid_filename(self):

conf, dummy = self.load_config_text(u"""\
instancehome <<INSTANCE_HOME>>
pid-filename <<INSTANCE_HOME>>/Z5.pid
""")
pid-filename <<INSTANCE_HOME>>{sep}Z5.pid
""".format(sep=os.path.sep))
expected = os.path.join(conf.instancehome, 'Z5.pid')
self.assertEqual(conf.pid_filename, expected)
4 changes: 2 additions & 2 deletions src/Zope2/utilities/tests/test_zconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ def test_runscript(self):
sys.argv = self.stored_sys_argv
sys.stdout = self.stored_stdout
expected = (
"42\n['run', '{}', '{}', 'bar', 'baz']\nPropertyManager\n").format(
self.zopeconf, script)
r"42\n['run', '{}', '{}', 'bar', 'baz']"
r"\nPropertyManager\n").format(self.zopeconf, script)
self.assertEqual(expected, got)

0 comments on commit fd14c66

Please sign in to comment.