You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test patch currently uses the deprecated utcnow() method from the datetime module to retrieve the current UTC. As of Python 3.12, utcnow() has been deprecated and is scheduled for removal in future versions of Python.
Question: Should the agent be producing deprecated code? If not, replacing utcnow with now will solve this.
Describe the bug
Instance ID:
django__django-11848
Category: Verified
The test patch currently uses the deprecated
utcnow()
method from thedatetime
module to retrieve the current UTC. As of Python 3.12,utcnow()
has been deprecated and is scheduled for removal in future versions of Python.Question: Should the agent be producing deprecated code? If not, replacing
utcnow
withnow
will solve this.Steps/Code to Reproduce
swebench.cloud eval result
Expected Results
Test patch should use
now()
Actual Results
Test patch have
utcnow()
System Information
No response
The text was updated successfully, but these errors were encountered: