summaryrefslogtreecommitdiffstats
path: root/Programs/_testembed.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-23 16:24:42 (GMT)
committerGitHub <noreply@github.com>2019-08-23 16:24:42 (GMT)
commita6427cb2a279c4125dc26d468bcbb3374cdc5f41 (patch)
tree42d91048474cdef61df318428aab3c9be44629e3 /Programs/_testembed.c
parentfe64ba611b587cf6e609679d40f0cdb8b7c93ca0 (diff)
downloadcpython-a6427cb2a279c4125dc26d468bcbb3374cdc5f41.zip
cpython-a6427cb2a279c4125dc26d468bcbb3374cdc5f41.tar.gz
cpython-a6427cb2a279c4125dc26d468bcbb3374cdc5f41.tar.bz2
bpo-36763: Implement PyWideStringList_Insert() of PEP 587 (GH-15423)
(cherry picked from commit 3842f2997fbd4dc840986aad2bb94656815e243b) Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Programs/_testembed.c')
-rw-r--r--Programs/_testembed.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/Programs/_testembed.c b/Programs/_testembed.c
index 3d27ed2..3873009 100644
--- a/Programs/_testembed.c
+++ b/Programs/_testembed.c
@@ -1350,8 +1350,14 @@ static int test_init_read_set(void)
goto fail;
}
+ status = PyWideStringList_Insert(&config.module_search_paths,
+ 1, L"test_path_insert1");
+ if (PyStatus_Exception(status)) {
+ goto fail;
+ }
+
status = PyWideStringList_Append(&config.module_search_paths,
- L"init_read_set_path");
+ L"test_path_append");
if (PyStatus_Exception(status)) {
goto fail;
}