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

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

Build:
Build:
LAST BUILD BRANCH: get-default-none
DEFAULT BRANCH: master
Ran 23 Mar 2020 08:27AM UTC
Jobs 3
Files 4
Run time 82723min
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

pending completion
37

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

3 of 3 new or added lines in 1 file covered. (100.0%)

90 of 90 relevant lines covered (100.0%)

1.0 hits per line

Jobs
ID Job ID Ran Files Coverage
2 37.2 19 May 2020 07:10PM UTC 0
100.0
Travis Job 37.2
4 37.4 23 Mar 2020 08:28AM UTC 0
100.0
Travis Job 37.4
5 37.5 19 May 2020 07:11PM UTC 0
100.0
Travis Job 37.5
Source Files on build 37
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #37
  • Pull Request #14
  • PR Base - master (#21)
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