Message203820
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 :) |
|
Date |
User |
Action |
Args |
2013-11-22 17:49:42 | pitrou | set | recipients:
+ pitrou, ronaldoussoren, ned.deily, hynek |
2013-11-22 17:49:42 | pitrou | set | messageid: <1385142582.76.0.752016715187.issue19718@psf.upfronthosting.co.za> |
2013-11-22 17:49:42 | pitrou | link | issue19718 messages |
2013-11-22 17:49:42 | pitrou | create | |
|