Skip to content

Commit 473edbd

Browse files
committed
Adjust to 9.9 that can't set main branch
1 parent 8b3eee3 commit 473edbd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/unit/test_branches.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ def test_set_as_main():
8888
assert main_br.is_main()
8989
assert not dev_br.is_main()
9090

91+
if tutil.SQ.version() < (10, 0, 0):
92+
with pytest.raises(exceptions.UnsupportedOperation):
93+
dev_br.set_as_main()
94+
return
95+
9196
assert dev_br.set_as_main()
9297
assert not main_br.is_main()
9398
assert dev_br.is_main()

0 commit comments

Comments
 (0)