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

cn / GB2260.py / 41
100%

Build:
DEFAULT BRANCH: master
Ran 19 May 2020 07:17PM UTC
Jobs 7
Files 4
Run time 1min
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
41

push

travis-ci

tonyseek
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

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

90 of 90 relevant lines covered (100.0%)

7.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 41.1 19 May 2020 07:17PM UTC 0
100.0
Travis Job 41.1
2 41.2 19 May 2020 07:17PM UTC 0
100.0
Travis Job 41.2
3 41.3 19 May 2020 07:17PM UTC 0
100.0
Travis Job 41.3
4 41.4 19 May 2020 07:17PM UTC 0
100.0
Travis Job 41.4
5 41.5 19 May 2020 07:17PM UTC 0
100.0
Travis Job 41.5
6 41.6 19 May 2020 07:18PM UTC 0
100.0
Travis Job 41.6
7 41.7 19 May 2020 07:18PM UTC 0
100.0
Travis Job 41.7
Source Files on build 41
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #41
  • 7ae5e5d0 on github
  • Prev Build on master (#39)
  • Next Build on master (#43)
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