Skip to content

Commit

Permalink
Fixed failing build
Browse files Browse the repository at this point in the history
  • Loading branch information
mikicz committed Feb 25, 2018
1 parent c90d522 commit 7d15d45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/test_arca_class.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,11 +307,11 @@ def test_shallow_since():

repo = Repo.init(git_dir)

for i in range(20, 1, -1):
for i in range(20, 0, -1):
filepath.write_text(str(uuid4()))
repo.index.add([str(filepath)])
repo.index.commit("Initial", commit_date=(now - timedelta(days=i)).strftime("%Y-%m-%dT%H:%M:%S"),
author_date=(now - timedelta(days=i)).strftime("%Y-%m-%dT%H:%M:%S"))
repo.index.commit("Initial", commit_date=(now - timedelta(days=i, hours=5)).strftime("%Y-%m-%dT%H:%M:%S"),
author_date=(now - timedelta(days=i, hours=5)).strftime("%Y-%m-%dT%H:%M:%S"))

cloned_repo, cloned_repo_path = arca.get_files(git_url, branch, shallow_since=(now - timedelta(days=10)).date())
assert cloned_repo.commit().count() == 10
Expand Down
3 changes: 1 addition & 2 deletions utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import distutils.cmd
import re
from pathlib import Path


class DeployDockerBasesCommand(distutils.cmd.Command):
Expand All @@ -24,7 +23,7 @@ def list_python_versions(self):

build_for = re.compile(r"^3\.[67]\.[0-9]+$")

for path in sorted((pyenv / "plugins/python-build/share/python-build/").iterdir()): # type: Path
for path in sorted((pyenv / "plugins/python-build/share/python-build/").iterdir()):
if path.is_dir():
continue

Expand Down

0 comments on commit 7d15d45

Please sign in to comment.