-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdjango__django-11583.gpt-4-0125-preview.eval.log
185 lines (173 loc) · 14.6 KB
/
django__django-11583.gpt-4-0125-preview.eval.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[django__django__3.0] [django__django-11583] Task Metadata:
- Instance ID: django__django-11583
- Testbed: django__django__3.0
- Evaluation Model: gpt-4-0125-preview
- Python version: Python 3.6.15
[django__django__3.0] [django__django-11583] Command: git -c advice.detachedHead=false checkout 60dc957a825232fdda9138e2f8878b2ca407a7c9
[django__django__3.0] [django__django-11583] Subprocess args: {"cwd": "/opt/django__django", "check": true, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11583] Std. Output:
Previous HEAD position was 419a78300f [3.0.x] Fixed typo in docs/ref/contrib/postgres/forms.txt.
HEAD is now at 60dc957a82 Removed unnecessary code in Model.__init__().
[django__django__3.0] [django__django-11583] Return Code: 0
[django__django__3.0] [django__django-11583] Command: git apply -v /opt/temp_django__django-11583_pred_try.patch
[django__django__3.0] [django__django-11583] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11583] Std. Output:
Checking patch django/utils/autoreload.py...
Applied patch django/utils/autoreload.py cleanly.
[django__django__3.0] [django__django-11583] Return Code: 0
[django__django__3.0] [django__django-11583] Apply patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.0] [django__django-11583] Command: git apply -v -R /opt/temp_django__django-11583_pred_try.patch
[django__django__3.0] [django__django-11583] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11583] Std. Output:
Checking patch django/utils/autoreload.py...
Applied patch django/utils/autoreload.py cleanly.
[django__django__3.0] [django__django-11583] Return Code: 0
[django__django__3.0] [django__django-11583] Revert patch successful (pred_try)
>>>>> Applied Patch (pred_try)
[django__django__3.0] [django__django-11583] Command: git apply -v /opt/temp_django__django-11583_pred.patch
[django__django__3.0] [django__django-11583] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11583] Std. Output:
Checking patch django/utils/autoreload.py...
Applied patch django/utils/autoreload.py cleanly.
[django__django__3.0] [django__django-11583] Return Code: 0
[django__django__3.0] [django__django-11583] Apply patch successful (pred)
>>>>> Applied Patch (pred)
[django__django__3.0] [django__django-11583] Command: git apply -v /opt/temp_django__django-11583_test.patch
[django__django__3.0] [django__django-11583] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2}
[django__django__3.0] [django__django-11583] Std. Output:
Checking patch tests/utils_tests/test_autoreload.py...
Applied patch tests/utils_tests/test_autoreload.py cleanly.
[django__django__3.0] [django__django-11583] Return Code: 0
[django__django__3.0] [django__django-11583] Apply patch successful (test)
>>>>> Applied Patch (test)
Test Script: ./tests/runtests.py --verbosity 2 utils_tests.test_autoreload;
[django__django__3.0] [django__django-11583] Command: ./tests/runtests.py --verbosity 2 utils_tests.test_autoreload
[django__django__3.0] [django__django-11583] Subprocess args: {"cwd": "/opt/django__django", "check": false, "shell": false, "universal_newlines": true, "stdout": -1, "stderr": -2, "timeout": 1800}
[django__django__3.0] [django__django-11583] Std. Output:
Testing against Django installed in '/opt/django__django/django' with up to 12 processes
Importing application utils_tests
Skipping setup of unused database(s): default, other.
System check identified no issues (0 silenced).
test_watchman_available (utils_tests.test_autoreload.GetReloaderTests) ... ok
test_watchman_unavailable (utils_tests.test_autoreload.GetReloaderTests) ... ok
test_mutates_error_files (utils_tests.test_autoreload.TestCheckErrors) ... ok
test_manage_py (utils_tests.test_autoreload.RestartWithReloaderTests) ... ok
test_python_m_django (utils_tests.test_autoreload.RestartWithReloaderTests) ... ok
test_check_availability (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_check_availability_lower_version (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_check_server_status (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_check_server_status_raises_error (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_file (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_glob (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_glob_recursive (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_multiple_globs (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_multiple_recursive_globs (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_nested_glob_recursive (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_overlapping_glob_recursive (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_overlapping_globs (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_pywatchman_not_available (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_setting_timeout_from_environment_variable (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_update_watches_raises_exceptions (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_watch_glob_ignores_non_existing_directories_two_levels (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_watch_glob_multiple_patterns (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_watch_glob_uses_existing_parent_directories (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_watched_roots_contains_directory_globs (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_watched_roots_contains_files (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_watched_roots_contains_sys_path (utils_tests.test_autoreload.WatchmanReloaderTests) ... skipped 'Watchman unavailable: Cannot connect to the watchman service.'
test_calls_start_django (utils_tests.test_autoreload.RunWithReloaderTests) ... ok
test_calls_sys_exit (utils_tests.test_autoreload.RunWithReloaderTests) ... ok
test_swallows_keyboard_interrupt (utils_tests.test_autoreload.RunWithReloaderTests) ... ok
test_no_exception (utils_tests.test_autoreload.TestRaiseLastException) ... ok
test_raises_custom_exception (utils_tests.test_autoreload.TestRaiseLastException) ... ok
test_raises_exception (utils_tests.test_autoreload.TestRaiseLastException) ... ok
test_raises_exception_with_context (utils_tests.test_autoreload.TestRaiseLastException) ... ok
test_common_roots (utils_tests.test_autoreload.TestCommonRoots) ... ok
test_sys_paths_absolute (utils_tests.test_autoreload.TestSysPathDirectories) ... ok
test_sys_paths_directories (utils_tests.test_autoreload.TestSysPathDirectories) ... ok
test_sys_paths_non_existing (utils_tests.test_autoreload.TestSysPathDirectories) ... ok
test_sys_paths_with_directories (utils_tests.test_autoreload.TestSysPathDirectories) ... ok
test_check_errors_called (utils_tests.test_autoreload.StartDjangoTests) ... ok
test_echo_on_called (utils_tests.test_autoreload.StartDjangoTests) ... ok
test_starts_thread_with_args (utils_tests.test_autoreload.StartDjangoTests) ... ok
test_watchman_becomes_unavailable (utils_tests.test_autoreload.StartDjangoTests) ... ok
test_run_loop_catches_stopiteration (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_run_loop_stop_and_return (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_wait_for_apps_ready_checks_for_exception (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_wait_for_apps_ready_without_exception (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_watch_files_with_recursive_glob (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_watch_with_glob (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_watch_with_single_file (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_watch_without_absolute (utils_tests.test_autoreload.BaseReloaderTests) ... ok
test_file (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_glob (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_glob_recursive (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_multiple_globs (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_multiple_recursive_globs (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_nested_glob_recursive (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_overlapping_glob_recursive (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_overlapping_globs (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_snapshot_files_ignores_missing_files (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_snapshot_files_updates (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_snapshot_files_with_duplicates (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_tick_does_not_trigger_twice (utils_tests.test_autoreload.StatReloaderTests) ... ok
test_bytecode_conversion_to_source (utils_tests.test_autoreload.TestIterModulesAndFiles)
.pyc and .pyo files are included in the files list. ... ok
test_check_errors (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_check_errors_catches_all_exceptions (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_file_added (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_main_module_is_resolved (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_main_module_without_file_is_not_resolved (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_module_without_spec (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_path_with_embedded_null_bytes (utils_tests.test_autoreload.TestIterModulesAndFiles) ... test_paths_are_pathlib_instances (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
test_weakref_in_sys_module (utils_tests.test_autoreload.TestIterModulesAndFiles)
iter_all_python_module_file() ignores weakref modules. ... ok
test_zip_reload (utils_tests.test_autoreload.TestIterModulesAndFiles) ... ok
======================================================================
ERROR: test_path_with_embedded_null_bytes (utils_tests.test_autoreload.TestIterModulesAndFiles) [<object object at 0x7371898eb7f0>] (path='embedded_null_byte\x00.py')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/utils_tests/test_autoreload.py", line 150, in test_path_with_embedded_null_bytes
autoreload.iter_modules_and_files((), frozenset([path])),
File "/opt/django__django/django/utils/autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 1141, in resolve
s = self._flavour.resolve(self, strict=strict)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 346, in resolve
return _resolve(base, str(path)) or sep
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 330, in _resolve
target = accessor.readlink(newpath)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 440, in readlink
return os.readlink(path)
ValueError: embedded null byte
======================================================================
ERROR: test_path_with_embedded_null_bytes (utils_tests.test_autoreload.TestIterModulesAndFiles) [<object object at 0x7371898eb7f0>] (path='di\x00rectory/embedded_null_byte.py')
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
yield
File "/opt/pyenv/versions/3.6.15/lib/python3.6/unittest/case.py", line 523, in subTest
yield
File "/opt/django__django/tests/utils_tests/test_autoreload.py", line 150, in test_path_with_embedded_null_bytes
autoreload.iter_modules_and_files((), frozenset([path])),
File "/opt/django__django/django/utils/autoreload.py", line 141, in iter_modules_and_files
resolved_path = path.resolve(strict=True).absolute()
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 1141, in resolve
s = self._flavour.resolve(self, strict=strict)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 346, in resolve
return _resolve(base, str(path)) or sep
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 330, in _resolve
target = accessor.readlink(newpath)
File "/opt/pyenv/versions/3.6.15/lib/python3.6/pathlib.py", line 440, in readlink
return os.readlink(path)
ValueError: embedded null byte
----------------------------------------------------------------------
Ran 73 tests in 0.779s
FAILED (errors=2, skipped=21)
[django__django__3.0] [django__django-11583] Return Code: 1
>>>>> Some Tests Failed
[django__django__3.0] [django__django-11583] Test script run successful