question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

v3.0.1 build failure due to the test test_blank_choices failing

See original GitHub issue

From the recent build logs I see this test failure:

======================================================================
ERROR: test_blank_choices (wtfpeewee.tests.WTFPeeweeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/coleifer/wtf-peewee/wtfpeewee/tests.py", line 231, in test_blank_choices
    self.assertTrue(form.validate())
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/form.py", line 318, in validate
    return super(Form, self).validate(extra)
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/form.py", line 150, in validate
    if not field.validate(self, extra):
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/fields/core.py", line 215, in validate
    self.pre_validate(form)
  File "/home/travis/build/coleifer/wtf-peewee/wtfpeewee/fields.py", line 187, in pre_validate
    super(SelectChoicesField, self).pre_validate(form)
  File "/home/travis/virtualenv/python3.6.7/lib/python3.6/site-packages/wtforms/fields/core.py", line 509, in pre_validate
    for _, _, match in self.iter_choices():
  File "/home/travis/build/coleifer/wtf-peewee/wtfpeewee/fields.py", line 163, in iter_choices
    yield (value, label, self.coerce(value) == self.data)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

I bumped into this myself because I tried to install buku in NixOS, and the wtf-peewee module (being a dependency of buku) in NixOS was just upgraded from 3.0.0 to 3.0.1 leading to the build failing.

I’m making this issue to let you know about the build failure in case you missed it. I’ll look into the test failure myself, but perhaps not tonight 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
coleifercommented, Aug 18, 2020

No problem at all, bro. I appreciate the offer but the thanks is more than enough.

0reactions
stianlagstadcommented, Aug 18, 2020

Thank you @coleifer ! Can I buy you a coffee through https://www.buymeacoffee.com/ or similar as a thank you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Build failure due to test errors · Issue #19 · tamingtext/book
Hello, I have followed the readme to build the code downloaded from master branch yesterday. ... It seems only 3 of the unit...
Read more >
mvn build fail when testng test fail - java - Stack Overflow
You are trying to test the app not build it. Anyway, if you really want to build it and skip test, you should...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found