test_scripts: fix on windows

This commit is contained in:
Brian Warner 2016-06-03 16:43:22 -07:00
parent a8c2fb14b1
commit 26445c3fc4

View File

@ -650,7 +650,7 @@ class ExtractFile(unittest.TestCase):
zi.filename = "haha//root" # abspath squashes this, hopefully zipfile zi.filename = "haha//root" # abspath squashes this, hopefully zipfile
# does too # does too
zi.external_attr = 5 << 16 zi.external_attr = 5 << 16
expected = os.path.join(extract_dir, "haha/root") expected = os.path.join(extract_dir, "haha", "root")
with mock.patch.object(cmd_receive.os, "chmod") as chmod: with mock.patch.object(cmd_receive.os, "chmod") as chmod:
ef(zf, zi, extract_dir) ef(zf, zi, extract_dir)
self.assertEqual(zf.extract.mock_calls, self.assertEqual(zf.extract.mock_calls,