[3.9] bpo-41069: Make TESTFN and the CWD for tests containing non-ascii characters. (GH-21035). (GH-21156)

(cherry picked from commit 700cfa8c90)
This commit is contained in:
Serhiy Storchaka 2020-06-25 20:39:12 +03:00 committed by GitHub
parent ad7a66731f
commit f925407a19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 108 additions and 76 deletions

View file

@ -1,13 +1,13 @@
""" Test suite for the code in msilib """
import os
import unittest
from test.support import TESTFN, FS_NONASCII, import_module, unlink
from test.support import TESTFN, import_module, unlink
msilib = import_module('msilib')
import msilib.schema
def init_database():
path = TESTFN + (FS_NONASCII or '') + '.msi'
path = TESTFN + '.msi'
db = msilib.init_database(
path,
msilib.schema,