Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated utcnow() method used in the test patch #252

Open
SmartManoj opened this issue Nov 15, 2024 · 0 comments
Open

Deprecated utcnow() method used in the test patch #252

SmartManoj opened this issue Nov 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@SmartManoj
Copy link

Describe the bug

Instance ID: django__django-11848
Category: Verified

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.

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

@SmartManoj SmartManoj added the bug Something isn't working label Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant