Skip to content

Commit 1b56237

Browse files
committed
Merge branch 'master' into dependencies_update_20231113
2 parents 613aef1 + 55ca839 commit 1b56237

File tree

4 files changed

+134
-123
lines changed

4 files changed

+134
-123
lines changed

.github/workflows/build-test.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ jobs:
2424
name: Check / Tests -> JDK-${{ matrix.jdk }}/${{ matrix.os }}
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828
with:
2929
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
3030
fetch-depth: 0
3131

3232
- name: Set up python 3
33-
uses: actions/setup-python@v3
33+
uses: actions/setup-python@v4
3434
with:
3535
python-version: '3.x'
3636
architecture: 'x64'
@@ -39,7 +39,7 @@ jobs:
3939
- run: pip install -r python/requirements.txt
4040

4141
- name: Set up JDK ${{ matrix.jdk }}
42-
uses: actions/setup-java@v2
42+
uses: actions/setup-java@v3
4343
with:
4444
java-version: ${{ matrix.jdk }}
4545
distribution: 'adopt'
@@ -55,19 +55,19 @@ jobs:
5555
name: BUILD ${{ github.sha }}
5656
steps:
5757
- name: Checkout
58-
uses: actions/checkout@v2
58+
uses: actions/checkout@v4
5959
with:
6060
# we don't know what commit the last tag was it's safer to get entire repo so previousStableVersion resolves
6161
fetch-depth: 0
6262

6363
- name: Set up python 3
64-
uses: actions/setup-python@v3
64+
uses: actions/setup-python@v4
6565
with:
6666
python-version: '3.x'
6767
architecture: 'x64'
6868

6969
- name: Set up JDK 17
70-
uses: actions/setup-java@v2
70+
uses: actions/setup-java@v3
7171
with:
7272
java-version: 17
7373
distribution: 'adopt'
@@ -77,7 +77,7 @@ jobs:
7777
run: ant artifact
7878

7979
- name: ziping artifact
80-
uses: actions/upload-artifact@v2
80+
uses: actions/upload-artifact@v4
8181
with:
8282
name: play-${{ github.sha }}
8383
if-no-files-found: error

framework/pym/play/cmdloader.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def load_core(self):
2424
if filename != "__init__.py" and filename.endswith(".py"):
2525
try:
2626
module_name = filename.replace(".py", "")
27-
module_path = os.path.join(self.path,filename)
27+
module_path = os.path.join(self.path, filename)
2828
mod = load_python_module(module_name, module_path)
2929
self._load_cmd_from(mod)
3030
except Exception as e:

samples-and-tests/i-am-a-developer/test_jvm_version_flag.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def testWithFlag(self, mock):
3333
play_app.java_cmd([])
3434

3535
step('Assert getJavaVersion was not called')
36-
self.assert_(not mock.called)
36+
mock.assert_(not mock.called)
3737

3838
@mock.patch('play.application.getJavaVersion', return_value='')
3939
def testWithoutFlag(self, mock):
@@ -43,7 +43,7 @@ def testWithoutFlag(self, mock):
4343
play_app.java_cmd([])
4444

4545
step('Assert getJavaVersion was called once')
46-
self.assert_(mock.called)
46+
mock.assert_(mock.called)
4747

4848

4949
if __name__ == '__main__':

0 commit comments

Comments
 (0)