Skip to content

Commit

Permalink
#55: Enable pytest-xdist
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
  • Loading branch information
nicoulaj committed Mar 19, 2017
1 parent d3d0d0b commit 29f9dd2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions rainbow/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,9 @@ def run(self):

def makeparentdirs(path):
directory = os.path.dirname(path)
if not os.path.exists(directory):
if not os.path.exists(directory): # no cover
try:
os.makedirs(directory) # no cover
except OSError, e:
# be happy if someone already created the path
os.makedirs(directory)
except OSError as e:
if e.errno != errno.EEXIST:
raise

0 comments on commit 29f9dd2

Please sign in to comment.