Skip to content

Commit 8426267

Browse files
committed
[GR-23332] Pass most of the test_site tests
1 parent b320f40 commit 8426267

File tree

4 files changed

+34
-3
lines changed

4 files changed

+34
-3
lines changed

graalpython/com.oracle.graal.python.shell/src/com/oracle/graal/python/shell/GraalPythonMain.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ private static void printShortHelp() {
351351
}
352352

353353
private static void print(String string) {
354-
System.out.println(string);
354+
System.err.println(string);
355355
}
356356

357357
private static String getLauncherExecName() {

graalpython/com.oracle.graal.python.test/src/tests/test_tagged_unittests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def test_tagged():
8484
cmd.append("--inspect")
8585
if "-debug-java" in sys.argv:
8686
cmd.append("-debug-java")
87-
cmd += ["-S", RUNNER]
87+
cmd += [RUNNER]
8888
for testpattern in working_test[1]:
8989
cmd.extend(["-k", testpattern])
9090
print("Running test:", working_test[0])
@@ -201,7 +201,7 @@ def main():
201201
# (there will be one even if everything succeeds) filter out possible false-passes caused by
202202
# the tests catching all exceptions somewhere
203203
cmd += ['--experimental-options', '--python.CatchAllExceptions']
204-
cmd += ["-S", RUNNER, "-v"]
204+
cmd += [RUNNER, "-v"]
205205
tagfile = os.path.join(TAGS_DIR, testfile_stem + ".txt")
206206
if retag and repeat == 0:
207207
test_selectors = []
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test__getuserbase
2+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_addpackage
3+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_addpackage_import_bad_exec
4+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_addpackage_import_bad_pth_file
5+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_addpackage_import_bad_syntax
6+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_addsitedir
7+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_get_path
8+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_getuserbase
9+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_getusersitepackages
10+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_init_pathinfo
11+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_makepath
12+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_no_home_directory
13+
*graalpython.lib-python.3.test.test_site.HelperFunctionsTests.test_s_option
14+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_abs_paths_cached_None
15+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_add_build_dir
16+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_aliasing_mbcs
17+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_license_exists_at_url
18+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_no_duplicate_paths
19+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_setting_copyright
20+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_setting_help
21+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_setting_quit
22+
*graalpython.lib-python.3.test.test_site.ImportSideEffectTests.test_sitecustomize_executed
23+
*graalpython.lib-python.3.test.test_site.StartupImportTests.test_startup_interactivehook
24+
*graalpython.lib-python.3.test.test_site.StartupImportTests.test_startup_interactivehook_isolated
25+
*graalpython.lib-python.3.test.test_site.StartupImportTests.test_startup_interactivehook_isolated_explicit
26+
*graalpython.lib-python.3.test.test_site._pthFileTests.test_underpth_dll_file
27+
*graalpython.lib-python.3.test.test_site._pthFileTests.test_underpth_file
28+
*graalpython.lib-python.3.test.test_site._pthFileTests.test_underpth_nosite_file

graalpython/lib-python/3/test/test_site.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
if sys.flags.no_site:
3131
raise unittest.SkipTest("Python was invoked with -S")
3232

33+
# Make sure sysconfig._CONFIG_VARS is initialized for the tests below
34+
sysconfig.get_config_vars()
35+
3336
import site
3437

3538

0 commit comments

Comments
 (0)