Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

failing test: testChamferedRoundedPad (moduletests.test_kicad5_padshapes.Kicad5PadsTests) #316

Open
aewallin opened this issue Mar 19, 2019 · 1 comment

Comments

@aewallin
Copy link
Contributor

Ubuntu 18.04lts, python 2.7.15rc1
manage.sh tests gives me:

FAIL: testChamferedRoundedPad (moduletests.test_kicad5_padshapes.Kicad5PadsTests)

Traceback (most recent call last):
File "/home/anders/Desktop/kicad-footprint-generator/KicadModTree/tests/moduletests/test_kicad5_padshapes.py", line 634, in testChamferedRoundedPad
self.assertEqual(result, RESULT_CHAMFERED_ROUNDED_PAD)
AssertionError: '(module chamfered_pad (layer F.Cu) (tedit 0)\n (descr "A example footprint")\n (tags example)\n (fp_text reference REF** (at 0 0) (layer F.SilkS)\n (effects (font (size 1 1) (thickness 0.15)))\n )\n (fp_text value chamfered_pad (at 0 0) (layer F.Fab)\n (effects (font (size 1 1) (thickness 0.15)))\n )\n (pad 1 smd custom (at 0 0) (size 3.646447 3.646447) (layers F.Cu F.Mask F.Paste)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -2 -1.5) (xy -1.5 -2) (xy 1.5 -2) (xy 2 -1.5)\n (xy 2 1.5) (xy 1.5 2) (xy -1.5 2) (xy -2 1.5)) (width 0))\n ))\n (pad 1 smd roundrect (at 0 0) (size 4 4) (layers B.Cu) (roundrect_rratio 0.25))\n (pad 1 smd custom (at 0 5) (size 2.292893 2.292893) (layers F.Cu F.Mask F.Paste)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -2 -0.5) (xy -1 -1.5) (xy 1 -1.5) (xy 2 -0.5)\n (xy 2 0.5) (xy 1 1.5) (xy -1 1.5) (xy -2 0.5)) (width 0))\n ))\n (pad 1 smd custom (at 0 5) (size 2.292893 2.292893) (layers B.Cu)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -1.25 0.25) (xy -0.25 -0.75) (xy 0.25 -0.75) (xy 1.25 0.25)\n (xy 1.25 -0.25) (xy 0.25 0.75) (xy -0.25 0.75) (xy -1.25 -0.25)) (width 1.5))\n ))\n (pad 1 smd custom (at 5 0) (size 2.292893 2.292893) (layers F.Cu F.Mask F.Paste)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -2 -0.5) (xy -1 -1.5) (xy 2 -1.5) (xy 2 0.5)\n (xy 1 1.5) (xy -2 1.5)) (width 0))\n ))\n (pad 1 smd custom (at 5 0) (size 2.292893 2.292893) (layers B.Cu)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -1.25 0.25) (xy -0.25 -0.75) (xy 1.25 -0.75) (xy 1.25 -0.25)\n (xy 0.25 0.75) (xy -1.25 0.75)) (width 1.5))\n ))\n)' != '(module chamfered_pad (layer F.Cu) (tedit 0)\n (descr "A example footprint")\n (tags example)\n (fp_text reference REF** (at 0 0) (layer F.SilkS)\n (effects (font (size 1 1) (thickness 0.15)))\n )\n (fp_text value chamfered_pad (at 0 0) (layer F.Fab)\n (effects (font (size 1 1) (thickness 0.15)))\n )\n (pad 1 smd custom (at 0 0) (size 3.646447 3.646447) (layers F.Cu F.Mask F.Paste)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -2 -1.5) (xy -1.5 -2) (xy 1.5 -2) (xy 2 -1.5)\n (xy 2 1.5) (xy 1.5 2) (xy -1.5 2) (xy -2 1.5)) (width 0))\n ))\n (pad 1 smd roundrect (at 0 0) (size 4 4) (layers B.Cu) (roundrect_rratio 0.25))\n (pad 1 smd custom (at 0 5) (size 2.292893 2.292893) (layers F.Cu F.Mask F.Paste)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -2 -0.5) (xy -1 -1.5) (xy 1 -1.5) (xy 2 -0.5)\n (xy 2 0.5) (xy 1 1.5) (xy -1 1.5) (xy -2 0.5)) (width 0))\n ))\n (pad 1 smd custom (at 0 5) (size 2.292893 2.292893) (layers B.Cu)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -1.292893 -0.207107) (xy -0.707107 -0.792893) (xy 0.707107 -0.792893) (xy 1.292893 -0.207107)\n (xy 1.292893 0.207107) (xy 0.707107 0.792893) (xy -0.707107 0.792893) (xy -1.292893 0.207107)) (width 1.414214))\n ))\n (pad 1 smd custom (at 5 0) (size 2.292893 2.292893) (layers F.Cu F.Mask F.Paste)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -2 -0.5) (xy -1 -1.5) (xy 2 -1.5) (xy 2 0.5)\n (xy 1 1.5) (xy -2 1.5)) (width 0))\n ))\n (pad 1 smd custom (at 5 0) (size 2.292893 2.292893) (layers B.Cu)\n (options (clearance outline) (anchor circle))\n (primitives\n (gr_poly (pts\n (xy -1.292893 -0.207107) (xy -0.707107 -0.792893) (xy 1.292893 -0.792893) (xy 1.292893 0.207107)\n (xy 0.707107 0.792893) (xy -1.292893 0.792893)) (width 1.414214))\n ))\n)'


Ran 45 tests in 0.087s

FAILED (failures=1)

@pointhi
Copy link
Owner

pointhi commented Mar 20, 2019

please try python 3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants