[New-bugs-announce] [issue39323] Add test for imghdr cli

Karthikeyan Singaravelan report at bugs.python.org
Mon Jan 13 11:42:19 EST 2020

New submission from Karthikeyan Singaravelan <tir.karthi at gmail.com>:

imghdr module has a cli that can display the image type for a given filename and also recurse through directories. I would like to propose following changes :

* Add tests for the imghdr cli.
* The cli uses hardcoded '/' separator in the end for directories this is a minor issue with windows where the separators are \ and the last separator is displayed with / like c:\Foo\Bar\Spam/ . Using os.sep can be a better option here.

I have a PR that I will add shortly for review.

components: Tests
messages: 359919
nosy: xtreak
priority: normal
severity: normal
status: open
title: Add test for imghdr cli
type: enhancement
versions: Python 3.7, Python 3.8, Python 3.9

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list