Skip to content

test: cover RFC length limits for domain() and hostname() - #493

Merged
nandgator merged 2 commits into
masterfrom
test-hostname-domain-length-limits
Oct 10, 2026
Merged

nandgator merged 2 commits into
masterfrom
test-hostname-domain-length-limits

Conversation

@nandgator

Copy link
Copy Markdown
Collaborator

#461 added the 253-character limit without tests. This adds regression coverage for the limits and label rules from RFC 1035 and RFC 1123: total length 253 accepted / 254 rejected, label length 63 accepted / 64 rejected, digit-leading labels accepted, leading or trailing hyphens and underscores rejected, plus the exact string from #413.

Tests only, no behaviour change. Verified that 8 of the new cases fail against the pre-#461 domain.py and all pass on master.

🤖 Generated with Claude Code

@nandgator
nandgator merged commit cd6facb into master Oct 10, 2026
7 checks passed
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.

1 participant