$OpenBSD$

Index: spyder/utils/tests/test_sourcecode.py
--- spyder/utils/tests/test_sourcecode.py.orig
+++ spyder/utils/tests/test_sourcecode.py
@@ -32,7 +32,7 @@ def test_split_source():
 
 
 def test_path_components():
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
         path_components0 = ['','','documents','test','test.py']        
     else:
         path_components0 = ['c:','','documents','test','test.py']        
@@ -41,7 +41,7 @@ def test_path_components():
 
 
 def test_differentiate_prefix():
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
         path_components0 = ['','','documents','test','test.py']
         path_components1 = ['','','documents','projects','test','test.py']
     else:
@@ -56,7 +56,8 @@ def test_differentiate_prefix():
 
 def test_get_same_name_files():
     files_path_list = []
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
+        path_components0 = ['','','documents','test','test.py']
         fname0 = os.path.join(*['','','documents','test','test.py'])
         files_path_list.append(fname0)
         fname1 = os.path.join(*['','','documents','projects','test','test.py'])
@@ -74,7 +75,8 @@ def test_get_same_name_files():
                                               ,'test.py') == same_name_files
 
 def test_shortest_path():
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
+        path_components0 = ['','','documents','test','test.py']
         files_path_list =[['','','documents','test','test.py'],
                           ['','','documents','projects','test','test.py']]
         shortest_path = os.path.join(*['','','documents','test','test.py'])
@@ -86,7 +88,8 @@ def test_shortest_path():
 
 def test_disambiguate_fname():
     files_path_list = []
-    if sys.platform.startswith('linux'):
+    if sys.platform.startswith(('linux', 'openbsd')):
+        path_components0 = ['','','documents','test','test.py']
         fname0 = os.path.join(*['','','documents','test','test.py'])
         files_path_list.append(fname0)
         fname1 = os.path.join(*['','','documents','projects','test','test.py'])
