Skip to content

Conversation

@NTFSvolume
Copy link
Contributor

@NTFSvolume NTFSvolume commented Oct 26, 2025

@NTFSvolume NTFSvolume changed the title fix: asume current year for formats without it fix: assume current year for formats without it Oct 26, 2025
@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.60%. Comparing base (bdc57d3) to head (648a0f7).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1288      +/-   ##
==========================================
+ Coverage   96.58%   96.60%   +0.02%     
==========================================
  Files         235      235              
  Lines        2866     2886      +20     
==========================================
+ Hits         2768     2788      +20     
  Misses         98       98              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Gallaecio
Copy link
Member

Seems like you need a minor change for Python 3.10 support in tests.


@parameterized.expand(
[
param(date_string="oct 14", fmt=r"%m %d"),
Copy link

@BoboTiG BoboTiG Oct 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe adding more cases here? Like "14-October-2025" which also triggers the warning on my side; and at least the original test case from the issue: "2024-11-27"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I added them to the parser tests

@NTFSvolume
Copy link
Contributor Author

Fixed compat issues with python 3.9/3.10 and added some additional tests

@BoboTiG
Copy link

BoboTiG commented Oct 27, 2025

Works for me, thanks @NTFSvolume 🥂

@Gallaecio Gallaecio merged commit b7bb1a5 into scrapinghub:master Oct 28, 2025
15 checks passed
@Gallaecio
Copy link
Member

Thanks!

@NTFSvolume NTFSvolume deleted the fix_dates_no_year branch October 28, 2025 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious

3 participants