Skip to content

Commit

Permalink
ci/iproute: avoid magic int in the test
Browse files Browse the repository at this point in the history
use os.O_CREAT instead

Bug-Url: #1234
  • Loading branch information
svinota committed Jan 7, 2025
1 parent f2fe5a9 commit e547f0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_linux/test_ipr/test_netns.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import errno
import os

import pytest
from pr2test.marks import require_root
Expand All @@ -14,7 +15,7 @@ def test_flags(context):
NetNS(nsname, flags=0)
assert e.value.args[0] == errno.ENOENT
# 8<-----------------------------------------------------
ns = NetNS(nsname, flags=64)
ns = NetNS(nsname, flags=os.O_CREAT)
assert len([x.get('index') for x in ns.link('dump')]) > 0
ns.close()
# 8<-----------------------------------------------------
Expand Down

0 comments on commit e547f0c

Please sign in to comment.