Convert test_int_noklass

This commit is contained in:
Raphael Pierzina 2015-04-03 18:37:12 +02:00
parent 75e927f79e
commit 086f12600c
2 changed files with 7 additions and 5 deletions

View File

@ -57,3 +57,10 @@ def test_add_base():
flags = debug.qflags_key(Qt, Qt.AlignTop, add_base=True)
assert flags == 'Qt.AlignTop'
def test_int_noklass():
"""Test passing an int without explicit klass given."""
with pytest.raises(TypeError):
debug.qflags_key(Qt, 42)

View File

@ -37,11 +37,6 @@ class QFlagsKeyTests(unittest.TestCase):
# https://github.com/The-Compiler/qutebrowser/issues/42
def test_int_noklass(self):
"""Test passing an int without explicit klass given."""
with self.assertRaises(TypeError):
debug.qflags_key(Qt, 42)
@unittest.skip('FIXME')
def test_int(self):
"""Test passing an int with explicit klass given."""