diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-06-30 08:56:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 08:56:03 (GMT) |
commit | ba67d7386edf20bcc0f878a518de0894cb574e9f (patch) | |
tree | bb04f9574dd940abea4025d9eacc9ed170fac1e4 /Lib/test | |
parent | 694d31e714074176f0c324f95948b75dc768c091 (diff) | |
download | cpython-ba67d7386edf20bcc0f878a518de0894cb574e9f.zip cpython-ba67d7386edf20bcc0f878a518de0894cb574e9f.tar.gz cpython-ba67d7386edf20bcc0f878a518de0894cb574e9f.tar.bz2 |
bpo-41142: Add support of non-ASCII paths for CAB files. (GH-21195)
* The path to the CAB file can be non-ASCII.
* Paths of added files can be non-ASCII.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_msilib.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_msilib.py b/Lib/test/test_msilib.py index 4a233c3..743bea7 100644 --- a/Lib/test/test_msilib.py +++ b/Lib/test/test_msilib.py @@ -112,6 +112,16 @@ class MsiDatabaseTestCase(unittest.TestCase): with self.assertRaises(msilib.MSIError): si.GetProperty(-1) + def test_FCICreate(self): + filepath = TESTFN + '.txt' + cabpath = TESTFN + '.cab' + self.addCleanup(unlink, filepath) + with open(filepath, 'wb'): + pass + self.addCleanup(unlink, cabpath) + msilib.FCICreate(cabpath, [(filepath, 'test.txt')]) + self.assertTrue(os.path.isfile(cabpath)) + class Test_make_id(unittest.TestCase): #http://msdn.microsoft.com/en-us/library/aa369212(v=vs.85).aspx |