• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mpeterv / Penlight / 34 / 1
81%
master: 84%

Build:
Build:
LAST BUILD BRANCH: add-import-into-checks
DEFAULT BRANCH: master
Ran 17 Jul 2016 11:35AM UTC
Files 39
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jul 2016 11:34AM UTC coverage: 79.729%. First build
LUA="lua 5.1"

push

travis-ci

mpeterv
Fix path.normpath

Rewrite path.normpath to first split out path anchor
(drive or UNC path start or '/', '//' or '\') and then iterate
over parts of remaining relative path.

This fixes issues with normpath not working correctly (comparing
to Python's os.path.normpath) in these cases:

* When a path part starts with '..':
    os.path.normpath("A/..B") == "A/..B"
    pl.path.normpath("A/..B") == "B"
* When a path starts with './':
    os.path.normpath("./A") == "A"
    pl.path.normpath("./A") == "./A"
* When a path ends with '/.':
    os.path.normpath("A/.") == "A"
    pl.path.normpath("A/.") == "A/."
* When a path ends with '/':
    os.path.normpath("A/") == "A"
    pl.path.normpath("A/") == "A/"
* When a path starts with '//':
    os.path.normpath("//") == "//"
    pl.path.normpath("//") == "/"

After this commit the only category of mismatches with Python's normpath
is paths starting with '/..': Python collapses that to '/'.

On Windows this commit fixes "C:\.." being normalized to ".".
Fixes #184.

4362 of 5471 relevant lines covered (79.73%)

190.99 hits per line

Source Files on job 34.1 (LUA="lua 5.1")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 34
  • Travis Job 34.1
  • c4a7b4de on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc