Skip to content

Commit fb36669

Browse files
authored
hotfix/fix-ci-errors (#21)
Fixed files to work with latest CI updates: - `Iterator` was moved from `collections` to `collections.abc` in Python 3.3 and deprecated in 3.10 https://stackoverflow.com/a/72330128 https://docs.python.org/3/library/collections.abc.html
2 parents 3053691 + 5188b7c commit fb36669

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
# 1.0.3
4+
5+
* Updated files to work with latest CI updates
6+
37
# 1.0.2
48

59
* Bug fix: python3 syntax fix

pack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords:
88
- mercurial
99
- git
1010
- source control
11-
version: 1.0.2
11+
version: 1.0.3
1212
stackstorm_version: ">=2.1.0"
1313
author: Aamir
1414

requirements-tests.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
stashy==0.3
2+
pybitbucket==0.12.0

tests/test_repository_sensor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import collections
1+
from collections.abc import Iterator
22
import mock
33
import stashy
44
import time
@@ -212,7 +212,7 @@ def side_effect(username, repository_name, branch, client):
212212
self.assertTrue(all([x in commit_info for x in commit_keys]))
213213

214214

215-
class MockCommits(collections.Iterator):
215+
class MockCommits(Iterator):
216216
def __init__(self, count, author, commit_model):
217217
self.delay = None
218218
self.commits = []

0 commit comments

Comments
 (0)