1. jython
  2. jython
  3. Pull requests

Pull requests

#29 Merged
Repository
indratalip
Branch
default
Repository
jython
Branch
default

Fix regression tests for test_glob

Author
  1. Indra Talip
Reviewers
Description

Fixes PosixModule.unlink by using java.nio.Path rather than java.io.File so that instead of isDirectory returns false for a symlink to a directory rather than true, thus allowing the symlink to be removed.

Fixes PosixModule.LStatFunction so that trailing slashes are passed to the jnr-posix.lstat function thereby replicating CPython behaviour when lstat is called on a path to a file that exists but with a trailing slash. The trailing slash is lost in the round trip of the path string via java.io.File.

Comments (2)