diff --git a/binarycpython/tests/test_functions.py b/binarycpython/tests/test_functions.py
index eb02619d559fa990d44a29fe557fc81f5c798975..ec36afb5c727bc8b32ae9f5f08e35faaf5724b69 100644
--- a/binarycpython/tests/test_functions.py
+++ b/binarycpython/tests/test_functions.py
@@ -110,13 +110,17 @@ class test_temp_dir(unittest.TestCase):
         binary_c_temp_dir = temp_dir()
         general_temp_dir = tempfile.gettempdir()
 
+        # Get username
+        username = get_username()
+        dirname = "binary_c_python-{}".format(username)
+
+        #
         self.assertTrue(
-            os.path.isdir(os.path.join(general_temp_dir, "binary_c_python"))
+            os.path.isdir(os.path.join(general_temp_dir, dirname))
         )
         self.assertTrue(
-            os.path.join(general_temp_dir, "binary_c_python")
-        ) == binary_c_temp_dir
-
+            os.path.join(general_temp_dir, dirname) == binary_c_temp_dir
+        ) 
 
 class test_create_hdf5(unittest.TestCase):
     """