Skip to content

Commit 30ee1fc

Browse files
authored
Update dependencies: docutils 0.20.1, Sphinx 7.2.6 (#92)
This is to go along with chapel-lang/chapel#24612 . The changes to test/test_chapeldomain.py avoid a problem when using docutils 0.19 or newer that came up with the way the test was using mocked objects. Reviewed by @lydia-duncan - thanks!
2 parents 5774b66 + 9664dde commit 30ee1fc

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

Diff for: requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Note: DON'T UPDATE THIS WITHOUT ALSO UPDATING SETUP.PY
2-
docutils==0.18
3-
Sphinx==5.3.0
2+
docutils==0.20.1
3+
Sphinx==7.2.6

Diff for: setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
packages=find_packages(exclude=('test',)),
4343
include_package_data=True,
4444
install_requires=[
45-
'docutils==0.18',
46-
'Sphinx==5.3.0',
45+
'docutils==0.20.1',
46+
'Sphinx==7.2.6',
4747
],
4848
namespace_packages=['sphinxcontrib']
4949
)

Diff for: test/test_chapeldomain.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,14 @@ def new_obj(self, objtype, **kwargs):
169169
"""Return new mocked out ChapelObject"""
170170
default_args = {
171171
'name': 'my-chpl',
172-
'arguments': mock.Mock('arguments'),
173-
'options': mock.Mock('options'),
174-
'content': mock.Mock('content'),
175-
'lineno': mock.Mock('lineno'),
176-
'content_offset': mock.Mock('content_offset'),
177-
'block_text': mock.Mock('block_text'),
178-
'state': mock.Mock('state'),
179-
'state_machine': mock.Mock('state_machine'),
172+
'arguments': mock.Mock(name='arguments'),
173+
'options': mock.Mock(name='options'),
174+
'content': mock.Mock(name='content'),
175+
'lineno': mock.Mock(name='lineno'),
176+
'content_offset': mock.Mock(name='content_offset'),
177+
'block_text': mock.Mock(name='block_text'),
178+
'state': mock.Mock(name='state'),
179+
'state_machine': mock.Mock(name='state_machine', spec=["reporter",]),
180180
}
181181
default_args.update(kwargs)
182182
o = self.object_cls(**default_args)

0 commit comments

Comments
 (0)