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

cn / GB2260.py / 37 / 4
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: get-default-none
DEFAULT BRANCH: master
Ran 23 Mar 2020 08:28AM UTC
Files 4
Run time 1s
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

23 Mar 2020 08:26AM UTC coverage: 100.0%. Remained the same
37.4

Pull #14

travis-ci

web-flow
fix cache KeyError when garbage collected

WeakValueDictionary cache may get garbage collected, so the test "if key in cache" is not safe.
Let's test it on the fly.

Here is the exception happened to me:

  File "algo.py", line 64, in search
    if check_identity(id):
  File "algo.py", line 30, in check_identity
    division = gb2260.get(region)
  File "/opt/pypy3/site-packages/gb2260/division.py", line 59, in get
    return cache[key]
  File "/opt/pypy3/lib-python/3/weakref.py", line 159, in __getitem__
    raise KeyError(key)
KeyError: 621121
Pull Request #14: fix cache KeyError when garbage collected

90 of 90 relevant lines covered (100.0%)

1.0 hits per line

Source Files on job 37.4
  • Tree
  • List 0
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 35
  • Travis Job 37.4
  • 15fab652 on github
  • Prev Job for on patch-1 (#21.1)
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