diff --git a/qutebrowser/test/utils/debug/test_qflags_key.py b/qutebrowser/test/utils/debug/test_qflags_key.py index 3f69a1158..de1d0e49c 100644 --- a/qutebrowser/test/utils/debug/test_qflags_key.py +++ b/qutebrowser/test/utils/debug/test_qflags_key.py @@ -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) diff --git a/qutebrowser/test/utils/test_debug.py b/qutebrowser/test/utils/test_debug.py index beb6efd1c..0f453f1c1 100644 --- a/qutebrowser/test/utils/test_debug.py +++ b/qutebrowser/test/utils/test_debug.py @@ -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."""