Commit 00bf3398 authored by Martín Ferrari's avatar Martín Ferrari

setUp needs to be guarded too

parent 0510e001
...@@ -5,6 +5,7 @@ import os, unittest ...@@ -5,6 +5,7 @@ import os, unittest
import netns, test_util import netns, test_util
class TestLink(unittest.TestCase): class TestLink(unittest.TestCase):
@test_util.skipUnless(os.getuid() == 0, "Test requires root privileges")
def setUp(self): def setUp(self):
n1 = netns.Node() n1 = netns.Node()
n2 = netns.Node() n2 = netns.Node()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment