Skip to content

Commit

Permalink
Fix directory separtor under Windows.
Browse files Browse the repository at this point in the history
This patch fix #1332.
  • Loading branch information
funilrys committed Jul 9, 2020
1 parent ddafbad commit 73479bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testUpdateHostsFile.py
Expand Up @@ -8,6 +8,7 @@
import json
import locale
import os
import platform
import re
import shutil
import sys
Expand Down Expand Up @@ -62,6 +63,8 @@ def mock_property(name):

@property
def sep(self):
if platform.system().lower() == "windows":
return "\\"
return os.sep

def assert_called_once(self, mock_method):
Expand Down

0 comments on commit 73479bc

Please sign in to comment.