Convert test_int_noklass
This commit is contained in:
parent
75e927f79e
commit
086f12600c
@ -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)
|
||||
|
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user