Skip to content

Instantly share code, notes, and snippets.

@schmir
Created December 12, 2011 23:04
Show Gist options
  • Save schmir/1469561 to your computer and use it in GitHub Desktop.
Save schmir/1469561 to your computer and use it in GitHub Desktop.
py.test fails with "TypeError: unorderable types: NoneType() < int()" with python 3
# py.test fails with "TypeError: unorderable types: NoneType() < int()"
import unittest
class TestJoinEmpty(unittest.TestCase):
pass
def make_test():
class Test(unittest.TestCase):
pass
Test.__name__ = "TestFoo"
return Test
TestFoo = make_test()
@RonnyPfannschmidt
Copy link

please attach full output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment