Skip to content

Commit

Permalink
Use "old" os.path when making temporary directory
Browse files Browse the repository at this point in the history
File this under "not sure how this ever worked"...
  • Loading branch information
sampsyo committed Oct 14, 2023
1 parent b6fa8ac commit de1ff6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Tox
run: pip install tox
- uses: luchihoratiu/debug-via-ssh@main
with:
NGROK_AUTH_TOKEN: ${{ secrets.NGROK_AUTH_TOKEN }}
SSH_PASS: ${{ secrets.SSH_PASS }}
- name: Tox
run: tox -e py-test

Expand Down
4 changes: 3 additions & 1 deletion test/test_paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class FakeSystem(unittest.TestCase):
TMP_HOME = False

def setUp(self):
if self.TMP_HOME:
self.home = tempfile.mkdtemp()

if self.SYS_NAME in SYSTEMS:
self.os_path = os.path
os.environ = {}
Expand All @@ -41,7 +44,6 @@ def setUp(self):
platform.system = lambda: self.SYS_NAME

if self.TMP_HOME:
self.home = tempfile.mkdtemp()
os.environ['HOME'] = self.home
os.environ['USERPROFILE'] = self.home

Expand Down

0 comments on commit de1ff6a

Please sign in to comment.