This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients hynek, ned.deily, pitrou, ronaldoussoren
Date 2013-11-22.17:49:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1385142582.76.0.752016715187.issue19718@psf.upfronthosting.co.za>
In-reply-to
Content
test_glob fails under OS X:

======================================================================
FAIL: test_glob (test.test_pathlib.PosixPathTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/test_pathlib.py", line 1615, in test_glob
    self.assertEqual(set(p.glob("FILEa")), set())
AssertionError: Items in the first set but not the second:
PosixPath('/Users/buildbot/buildarea/3.x.murray-snowleopard/build/build/test_python_39872/@test_39872_tmp/FILEa')


In that test, "FILEa" doesn't exist but "fileA" does.  glob() uses a shortcut when there's no wildcard: it calls .exists() instead of checking the name is inside listdir().  Unfortunately here, the filesystem is insensitive and Path("FILEa").exists() will return True.

However, p.glob("FILEa*") will really return nothing (at least I think so, I don't have a Mac to test), so this is a bit inconsistent.


If we decide the inconsistency is ok, I must then change the test to not exercise it :)
History
Date User Action Args
2013-11-22 17:49:42pitrousetrecipients: + pitrou, ronaldoussoren, ned.deily, hynek
2013-11-22 17:49:42pitrousetmessageid: <1385142582.76.0.752016715187.issue19718@psf.upfronthosting.co.za>
2013-11-22 17:49:42pitroulinkissue19718 messages
2013-11-22 17:49:42pitroucreate