Skip to content

Commit c80bd05

Browse files
committed
Fix build_all.sh issues.
1 parent d9de746 commit c80bd05

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

pymemtrace/src/cpy/cPyMemTrace.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -963,7 +963,7 @@ PyInit_cPyMemTrace(void) {
963963
return m;
964964
}
965965

966-
#if 1
966+
#if 0
967967

968968
int
969969
main(int argc, char **argv) {
@@ -972,6 +972,7 @@ main(int argc, char **argv) {
972972
printf("Arg[%d]: %s\n", i, argv[i]);
973973
}
974974

975+
// TODO: Initialisation for different Python versions.
975976
PyStatus status;
976977
PyConfig config;
977978

pymemtrace/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void macosx_get_short_pid_info(void) {
6666
printf(" gid: %d\n", (int)proc.pbsi_gid);
6767
}
6868

69-
#if 0
69+
#if 1
7070
int
7171
main (int argc, char **argv)
7272
{

tests/test_cpymemtrace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_profile_basic_lt_310():
5959
assert os.path.isfile(profiler.trace_file_wrapper.log_file_path)
6060

6161

62-
# @pytest.mark.skipif(not (sys.version_info.minor > 10), reason='Python > 3.10')
62+
@pytest.mark.skipif(not (sys.version_info.minor > 10), reason='Python > 3.10')
6363
def test_profile_basic_gt_310():
6464
time.sleep(1.1) # Make sure that we increment the log file name by one second.
6565
print()

0 commit comments

Comments
 (0)