Skip to content

Commit

Permalink
SporeModManager: test unicode path in test.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Aug 4, 2024
1 parent fa27a7f commit c82d029
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SporeModManager/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
network = False

# paths for tests
tests_path = tempfile.mkdtemp()
tmp_path = tempfile.mkdtemp()
tests_path = os.path.join(tmp_path, '胞子')
corelibs_path = os.path.join(tests_path, 'CoreLibs')
sporemodapi_file = os.path.join(corelibs_path, 'SporeModAPI.dll')
sporemod_file = os.path.join(tests_path, 'test.sporemod')
Expand All @@ -42,7 +43,7 @@

def cleanup_smm():
if cleanup:
shutil.rmtree(tests_path)
shutil.rmtree(tmp_path)

def reset_smm():
if os.path.isfile(config_file):
Expand Down Expand Up @@ -687,6 +688,7 @@ def test_update_modapi():
network = args.network

# create test directories
os.mkdir(tests_path)
os.mkdir(corelibs_path)
os.mkdir(modlibs_path)
os.mkdir(data_path)
Expand Down

0 comments on commit c82d029

Please sign in to comment.