Skip to content

Commit 7561e2c

Browse files
youknowoneclaude
andcommitted
Fix email test data CRLF and mark imghdr-dependent test
- Update .gitattributes to use proper patterns for importlib test data - Add eol=CRLF for email test data files that require CRLF line endings - Mark test_guess_minor_type as expectedFailure (imghdr not available) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c9e25ea commit 7561e2c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ vm/src/stdlib/ast/gen.rs linguist-generated -merge
55
Lib/*.py text working-tree-encoding=UTF-8 eol=LF
66
Lib/test/test_importlib/**/*.file -text
77
Lib/test/test_importlib/**/namespacedata*/** -text
8+
Lib/test/test_email/data/*.txt text eol=CRLF
89
**/*.rs text working-tree-encoding=UTF-8 eol=LF
910
*.pck binary
1011
crates/rustpython_doc_db/src/*.inc.rs linguist-generated=true

Lib/test/test_email/test_email.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,7 @@ def _make_image(self, ext):
16421642
self._imgdata = fp.read()
16431643
self._im = MIMEImage(self._imgdata)
16441644

1645+
@unittest.expectedFailure # TODO: RUSTPYTHON, imghdr module not available
16451646
def test_guess_minor_type(self):
16461647
for ext, subtype in {
16471648
'bmp': None,

0 commit comments

Comments
 (0)