A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2003-July/037146.html below:

[Python-Dev] posixpath.ismount() on non-posix systems

[Python-Dev] posixpath.ismount() on non-posix systems [Python-Dev] posixpath.ismount() on non-posix systemsWalter Dörwald walter@livinglogic.de
Wed, 23 Jul 2003 14:36:55 +0200
Jack Jansen wrote:

> I've just filed bug #776207: test_posixpath fails on MacOS9. The problem
> is that it expects posixpath.ismount('/') to return true.

Checking ismount() was added as part of the port to PyUnit.

> But on OS9 it returns
> false. I'm unsure as to the correct behaviour of this on non-posix systems,
> does anyone have a suggestion? How does it behave on Windows? Should 
> test_posixpath
> maybe only run some of the tests on non-posix systems?

If there isn't any path that reliably returns True or False the only
test we could do is:

assert_(isinstance(posixpath.ismount("/"), bool)

This would at least cover the code.

Bye,
    Walter Dörwald




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4