Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
pwnage101 committed Jul 25, 2019
1 parent 8ef4c9d commit 6193150
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion edx/analytics/tasks/tests/acceptance/test_database_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import logging
import os
import shutil
import stat
import tempfile
import textwrap
from urllib.parse import urlparse
Expand Down Expand Up @@ -58,7 +59,10 @@ def create_temporary_directories(self):
for dir_path in [self.external_files_dir, self.working_dir, self.validation_dir, self.gpg_dir]:
os.makedirs(dir_path)

os.chmod(self.gpg_dir, 0700)
os.chmod(
self.gpg_dir,
stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR, # equivalent to "0700" in Unix chmod.
)

# The exporter expects this directory to already exist.
os.makedirs(os.path.join(self.working_dir, 'course-data'))
Expand Down

0 comments on commit 6193150

Please sign in to comment.