We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b3eee3 commit 473edbdCopy full SHA for 473edbd
test/unit/test_branches.py
@@ -88,6 +88,11 @@ def test_set_as_main():
88
assert main_br.is_main()
89
assert not dev_br.is_main()
90
91
+ if tutil.SQ.version() < (10, 0, 0):
92
+ with pytest.raises(exceptions.UnsupportedOperation):
93
+ dev_br.set_as_main()
94
+ return
95
+
96
assert dev_br.set_as_main()
97
assert not main_br.is_main()
98
assert dev_br.is_main()
0 commit comments