test_scripts: fix on windows
This commit is contained in:
parent
a8c2fb14b1
commit
26445c3fc4
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user