diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 33482df7c2..0e1c3b6715 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.6, 3.7, 3.8, 3.9] + python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 @@ -24,7 +24,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest pyfakefs==4.4.0 pytest-cov pytest-asyncio codecov + pip install flake8 pytest pyfakefs==4.5.6 pytest-cov pytest-asyncio codecov # Install required dependencies for pynq since we import it in setup.py pip install numpy cffi if [ -f requirements.txt ]; then pip install -r requirements.txt; fi diff --git a/tests/test_devicetree.py b/tests/test_devicetree.py index 89921504b0..ccd909e390 100644 --- a/tests/test_devicetree.py +++ b/tests/test_devicetree.py @@ -25,7 +25,7 @@ def _add_dtbo(self, fd): dtbo_dir = os.path.dirname(fd.path) if self._fail: print('Resetting contents') - fd._set_initial_contents('') + fd.set_initial_contents('') with open(os.path.join(dtbo_dir, 'status'), 'w') as f: f.write('applied\n')