diff options
| -rw-r--r-- | lldb/test/lldbtest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 66c69f99331..c3deee9cb36 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -1651,7 +1651,8 @@ class Base(unittest2.TestCase): if compiler[1] == ':': compiler = compiler[2:] - compiler = compiler.replace(os.path.altsep, os.path.sep) + if os.path.altsep is not None: + compiler = compiler.replace(os.path.altsep, os.path.sep) fname = "{}-{}-{}".format(self.id(), self.getArchitecture(), "_".join(compiler.split(os.path.sep))) if len(fname) > 200: |

