Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-datadir for 
openSUSE:Factory checked in at 2023-11-08 22:17:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-datadir (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-datadir.new.17445 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-datadir"

Wed Nov  8 22:17:10 2023 rev:5 rq:1124083 version:1.5.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-datadir/python-pytest-datadir.changes  
    2023-05-09 13:06:37.676767464 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-datadir.new.17445/python-pytest-datadir.changes
   2023-11-08 22:17:26.650547794 +0100
@@ -1,0 +2,7 @@
+Tue Nov  7 19:37:33 UTC 2023 - Dirk Müller <dmuel...@suse.com>
+
+- update to 1.5.0:
+  * Added support for Python 3.11 and 3.12.
+  * Dropped support for Python 3.7.
+
+-------------------------------------------------------------------

Old:
----
  pytest-datadir-1.4.1.tar.gz

New:
----
  pytest-datadir-1.5.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-datadir.spec ++++++
--- /var/tmp/diff_new_pack.1SVg4F/_old  2023-11-08 22:17:28.238606133 +0100
+++ /var/tmp/diff_new_pack.1SVg4F/_new  2023-11-08 22:17:28.246606427 +0100
@@ -18,12 +18,13 @@
 
 %{?sle15_python_module_pythons}
 Name:           python-pytest-datadir
-Version:        1.4.1
+Version:        1.5.0
 Release:        0
 Summary:        Plugin for test data directories and files
 License:        MIT
 URL:            https://github.com/gabrielcnr/pytest-datadir
 Source:         
https://files.pythonhosted.org/packages/source/p/pytest-datadir/pytest-datadir-%{version}.tar.gz
+BuildRequires:  %{python_module base >= 3.8}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes

++++++ pytest-datadir-1.4.1.tar.gz -> pytest-datadir-1.5.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/.github/workflows/deploy.yml 
new/pytest-datadir-1.5.0/.github/workflows/deploy.yml
--- old/pytest-datadir-1.4.1/.github/workflows/deploy.yml       1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-datadir-1.5.0/.github/workflows/deploy.yml       2023-10-02 
20:16:06.000000000 +0200
@@ -0,0 +1,55 @@
+name: deploy
+
+on:
+  workflow_dispatch:
+    inputs:
+      version:
+        description: 'Release version'
+        required: true
+        default: '1.2.3'
+
+jobs:
+
+  package:
+    runs-on: ubuntu-latest
+    env:
+      SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.version }}
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Build and Check Package
+      uses: hynek/build-and-inspect-python-package@v1.5
+
+  deploy:
+    needs: package
+    runs-on: ubuntu-latest
+    environment: deploy
+    permissions:
+      id-token: write  # For PyPI trusted publishers.
+      contents: write  # For tag and release notes.
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Download Package
+      uses: actions/download-artifact@v3
+      with:
+        name: Packages
+        path: dist
+
+    - name: Publish package to PyPI
+      uses: pypa/gh-action-pypi-publish@v1.8.5
+
+    - name: Push tag
+      run: |
+        git config user.name "pytest bot"
+        git config user.email "pytest...@gmail.com"
+        git tag --annotate --message=v${{ github.event.inputs.version }} v${{ 
github.event.inputs.version }} ${{ github.sha }}
+        git push origin v${{ github.event.inputs.version }}
+
+    - name: GitHub Release
+      uses: softprops/action-gh-release@v1
+      with:
+        files: dist/*
+        tag_name: v${{ github.event.inputs.version }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/.github/workflows/main.yml 
new/pytest-datadir-1.5.0/.github/workflows/main.yml
--- old/pytest-datadir-1.4.1/.github/workflows/main.yml 2022-10-25 
13:17:00.000000000 +0200
+++ new/pytest-datadir-1.5.0/.github/workflows/main.yml 1970-01-01 
01:00:00.000000000 +0100
@@ -1,66 +0,0 @@
-name: build
-
-on: [push, pull_request]
-
-jobs:
-  build:
-
-    runs-on: ${{ matrix.os }}
-
-    strategy:
-      fail-fast: false
-      matrix:
-        python: ["3.6", "3.7", "3.8", "3.9", "3.10"]
-        os: [ubuntu-latest, windows-latest, macos-latest]
-        include:
-          - python: "3.6"
-            tox_env: "py36"
-          - python: "3.7"
-            tox_env: "py37"
-          - python: "3.8"
-            tox_env: "py38"
-          - python: "3.9"
-            tox_env: "py39"
-          - python: "3.10"
-            tox_env: "py310"
-
-    steps:
-    - uses: actions/checkout@v3
-    - name: Set up Python
-      uses: actions/setup-python@v4
-      with:
-        python-version: ${{ matrix.python }}
-    - name: Install tox
-      run: |
-        python -m pip install --upgrade pip
-        python -m pip install tox
-    - name: Test
-      run: |
-        tox -e ${{ matrix.tox_env }}
-
-  deploy:
-
-    if: github.event_name == 'push' && startsWith(github.event.ref, 
'refs/tags')
-
-    runs-on: ubuntu-latest
-
-    needs: build
-
-    steps:
-    - uses: actions/checkout@v3
-    - name: Set up Python
-      uses: actions/setup-python@v4
-      with:
-        python-version: "3.9"
-    - name: Install wheel
-      run: |
-        python -m pip install --upgrade pip
-        python -m pip install build
-    - name: Build package
-      run: |
-        python -m build
-    - name: Publish package to PyPI
-      uses: pypa/gh-action-pypi-publish@master
-      with:
-        user: __token__
-        password: ${{ secrets.pypi_token }}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/.github/workflows/test.yml 
new/pytest-datadir-1.5.0/.github/workflows/test.yml
--- old/pytest-datadir-1.4.1/.github/workflows/test.yml 1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-datadir-1.5.0/.github/workflows/test.yml 2023-10-02 
20:16:06.000000000 +0200
@@ -0,0 +1,59 @@
+name: test
+
+on:
+  push:
+    branches:
+      - main
+      - "test-me-*"
+
+  pull_request:
+
+
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
+jobs:
+
+  package:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v3
+      - name: Build and Check Package
+        uses: hynek/build-and-inspect-python-package@v1.5
+
+  test:
+
+    needs: [package]
+
+    runs-on: ${{ matrix.os }}
+
+    strategy:
+      fail-fast: false
+      matrix:
+        python: ["3.8", "3.9", "3.10", "3.11", "3.12-dev"]
+        os: [ubuntu-latest, windows-latest, macos-latest]
+
+    steps:
+    - uses: actions/checkout@v3
+
+    - name: Download Package
+      uses: actions/download-artifact@v3
+      with:
+        name: Packages
+        path: dist
+
+    - name: Set up Python
+      uses: actions/setup-python@v4
+      with:
+        python-version: ${{ matrix.python }}
+
+    - name: Install tox
+      run: |
+        python -m pip install --upgrade pip
+        pip install tox
+
+    - name: Test
+      shell: bash
+      run: |
+        tox run -e py --installpkg `find dist/*.tar.gz`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/.pre-commit-config.yaml 
new/pytest-datadir-1.5.0/.pre-commit-config.yaml
--- old/pytest-datadir-1.4.1/.pre-commit-config.yaml    2022-10-25 
13:17:00.000000000 +0200
+++ new/pytest-datadir-1.5.0/.pre-commit-config.yaml    2023-10-02 
20:16:06.000000000 +0200
@@ -1,29 +1,29 @@
 exclude: (?x)(\.txt)
 repos:
 -   repo: https://github.com/PyCQA/autoflake
-    rev: v1.7.6
+    rev: v2.2.1
     hooks:
     -   id: autoflake
         name: autoflake
         args: ["--in-place", "--remove-unused-variables", 
"--remove-all-unused-imports"]
         language: python
         files: \.py$
--   repo: https://github.com/asottile/reorder_python_imports
-    rev: v3.8.5
+-   repo: https://github.com/asottile/reorder-python-imports
+    rev: v3.10.0
     hooks:
     -   id: reorder-python-imports
 -   repo: https://github.com/psf/black
-    rev: 22.10.0
+    rev: 23.9.1
     hooks:
     -   id: black
         args: [--safe, --quiet]
 -   repo: https://github.com/asottile/blacken-docs
-    rev: v1.12.1
+    rev: 1.16.0
     hooks:
     -   id: blacken-docs
         additional_dependencies: [black==22.8.0]
 -   repo: https://github.com/pre-commit/pre-commit-hooks
-    rev: v4.3.0
+    rev: v4.4.0
     hooks:
     -   id: trailing-whitespace
     -   id: end-of-file-fixer
@@ -39,12 +39,12 @@
     -   id: debug-statements
         language_version: python3
 -   repo: https://github.com/PyCQA/flake8
-    rev: 5.0.4
+    rev: 6.1.0
     hooks:
     -   id: flake8
         exclude: tests/data
         language_version: python3
         additional_dependencies:
-            - flake8-typing-imports==1.9.0
-            - flake8-builtins==1.5.3
-            - flake8-bugbear==20.1.4
+            - flake8-typing-imports==1.14.0
+            - flake8-builtins==2.1.0
+            - flake8-bugbear==23.1.20
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/CHANGELOG.rst 
new/pytest-datadir-1.5.0/CHANGELOG.rst
--- old/pytest-datadir-1.4.1/CHANGELOG.rst      2022-10-25 13:17:00.000000000 
+0200
+++ new/pytest-datadir-1.5.0/CHANGELOG.rst      2023-10-02 20:16:06.000000000 
+0200
@@ -1,8 +1,16 @@
 pytest-datadir
 ==============
 
+1.5.0 (2023-10-02)
+------------------
+
+- Added support for Python 3.11 and 3.12.
+- Dropped support for Python 3.7.
+- Fix handling of UNC paths on Windows (`#33 
<https://github.com/gabrielcnr/pytest-datadir/issues/33>`__).
+
 1.4.1 (2022-10-24)
 ------------------
+
 - Replace usage of ``tmpdir`` by ``tmp_path`` (`#48 
<https://github.com/gabrielcnr/pytest-datadir/pull/48>`__).
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/PKG-INFO 
new/pytest-datadir-1.5.0/PKG-INFO
--- old/pytest-datadir-1.4.1/PKG-INFO   2022-10-25 13:17:12.004056500 +0200
+++ new/pytest-datadir-1.5.0/PKG-INFO   2023-10-02 20:16:31.658109200 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-datadir
-Version: 1.4.1
+Version: 1.5.0
 Summary: pytest plugin for test data directories and files
 Home-page: http://github.com/gabrielcnr/pytest-datadir
 Author: Gabriel Reis
@@ -11,17 +11,18 @@
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
 Classifier: Topic :: Software Development :: Quality Assurance
 Classifier: Topic :: Software Development :: Testing
-Requires-Python: >=3.6
+Requires-Python: >=3.8
 Description-Content-Type: text/markdown
 License-File: LICENSE
 License-File: AUTHORS
+Requires-Dist: pytest>=5.0
 
 # pytest-datadir
 
@@ -64,19 +65,6 @@
 
 Both `datadir` and `shared_datadir` fixtures are `pathlib.Path` objects.
 
-# Releases
-
-Follow these steps to make a new release:
-
-1. Create a new branch `release-X.Y.Z` from `master`.
-2. Update `CHANGELOG.rst`.
-3. Open a PR.
-4. After it is **green** and **approved**, push a new tag in the format 
`X.Y.Z`.
-
-Travis will deploy to PyPI automatically.
-
-Afterwards, update the recipe in 
[conda-forge/pytest-datadir-feedstock](https://github.com/conda-forge/pytest-datadir-feedstock).
-
 # License
 
 MIT.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/README.md 
new/pytest-datadir-1.5.0/README.md
--- old/pytest-datadir-1.4.1/README.md  2022-10-25 13:17:00.000000000 +0200
+++ new/pytest-datadir-1.5.0/README.md  2023-10-02 20:16:06.000000000 +0200
@@ -39,19 +39,6 @@
 
 Both `datadir` and `shared_datadir` fixtures are `pathlib.Path` objects.
 
-# Releases
-
-Follow these steps to make a new release:
-
-1. Create a new branch `release-X.Y.Z` from `master`.
-2. Update `CHANGELOG.rst`.
-3. Open a PR.
-4. After it is **green** and **approved**, push a new tag in the format 
`X.Y.Z`.
-
-Travis will deploy to PyPI automatically.
-
-Afterwards, update the recipe in 
[conda-forge/pytest-datadir-feedstock](https://github.com/conda-forge/pytest-datadir-feedstock).
-
 # License
 
 MIT.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/RELEASING.rst 
new/pytest-datadir-1.5.0/RELEASING.rst
--- old/pytest-datadir-1.4.1/RELEASING.rst      1970-01-01 01:00:00.000000000 
+0100
+++ new/pytest-datadir-1.5.0/RELEASING.rst      2023-10-02 20:16:06.000000000 
+0200
@@ -0,0 +1,7 @@
+Here are the steps on how to make a new release.
+
+1. Create a ``release-VERSION`` branch from ``upstream/master``.
+2. Update ``CHANGELOG.rst``.
+3. Push the branch to ``upstream``.
+4. Once all tests pass, start the ``deploy`` workflow manually.
+5. Merge the PR.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/setup.py 
new/pytest-datadir-1.5.0/setup.py
--- old/pytest-datadir-1.4.1/setup.py   2022-10-25 13:17:00.000000000 +0200
+++ new/pytest-datadir-1.5.0/setup.py   2023-10-02 20:16:06.000000000 +0200
@@ -15,10 +15,7 @@
         "pytest11": ["pytest-datadir = pytest_datadir.plugin"],
     },
     package_dir={"": "src"},
-    setup_requires=[
-        "setuptools_scm; python_version>'3.6'",
-        "setuptools_scm <7.0; python_version=='3.6'",
-    ],
+    setup_requires=["setuptools_scm"],
     install_requires=["pytest>=5.0"],
     author="Gabriel Reis",
     author_email="gabriel...@gmail.com",
@@ -28,17 +25,17 @@
     license="MIT",
     keywords="pytest test unittest directory file",
     url="http://github.com/gabrielcnr/pytest-datadir";,
-    python_requires=">=3.6",
+    python_requires=">=3.8",
     classifiers=[
         "Development Status :: 5 - Production/Stable",
         "Intended Audience :: Developers",
         "License :: OSI Approved :: MIT License",
         "Operating System :: OS Independent",
-        "Programming Language :: Python :: 3.6",
-        "Programming Language :: Python :: 3.7",
         "Programming Language :: Python :: 3.8",
         "Programming Language :: Python :: 3.9",
         "Programming Language :: Python :: 3.10",
+        "Programming Language :: Python :: 3.11",
+        "Programming Language :: Python :: 3.12",
         "Topic :: Software Development :: Quality Assurance",
         "Topic :: Software Development :: Testing",
     ],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/src/pytest_datadir/_version.py 
new/pytest-datadir-1.5.0/src/pytest_datadir/_version.py
--- old/pytest-datadir-1.4.1/src/pytest_datadir/_version.py     2022-10-25 
13:17:11.000000000 +0200
+++ new/pytest-datadir-1.5.0/src/pytest_datadir/_version.py     2023-10-02 
20:16:31.000000000 +0200
@@ -1,5 +1,16 @@
-# coding: utf-8
 # file generated by setuptools_scm
 # don't change, don't track in version control
-__version__ = version = '1.4.1'
-__version_tuple__ = version_tuple = (1, 4, 1)
+TYPE_CHECKING = False
+if TYPE_CHECKING:
+    from typing import Tuple, Union
+    VERSION_TUPLE = Tuple[Union[int, str], ...]
+else:
+    VERSION_TUPLE = object
+
+version: str
+__version__: str
+__version_tuple__: VERSION_TUPLE
+version_tuple: VERSION_TUPLE
+
+__version__ = version = '1.5.0'
+__version_tuple__ = version_tuple = (1, 5, 0)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/src/pytest_datadir/plugin.py 
new/pytest-datadir-1.5.0/src/pytest_datadir/plugin.py
--- old/pytest-datadir-1.4.1/src/pytest_datadir/plugin.py       2022-10-25 
13:17:00.000000000 +0200
+++ new/pytest-datadir-1.5.0/src/pytest_datadir/plugin.py       2023-10-02 
20:16:06.000000000 +0200
@@ -16,7 +16,17 @@
         # to a path string tells the Windows APIs to disable all string parsing
         # and to send the string that follows it straight to the file system".
         # (See 
https://docs.microsoft.com/pt-br/windows/desktop/FileIO/naming-a-file)
-        return "\\\\?\\" + os.path.normpath(path)
+        normalized = os.path.normpath(path)
+        if not normalized.startswith("\\\\?\\"):
+            is_unc = normalized.startswith("\\\\")
+            # see 
https://en.wikipedia.org/wiki/Path_(computing)#Universal_Naming_Convention # 
noqa: E501
+            if (
+                is_unc
+            ):  # then we need to insert an additional "UNC\" to the longpath 
prefix
+                normalized = normalized.replace("\\\\", "\\\\?\\UNC\\")
+            else:
+                normalized = "\\\\?\\" + normalized
+        return normalized
     else:
         return path
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-datadir-1.4.1/src/pytest_datadir.egg-info/PKG-INFO 
new/pytest-datadir-1.5.0/src/pytest_datadir.egg-info/PKG-INFO
--- old/pytest-datadir-1.4.1/src/pytest_datadir.egg-info/PKG-INFO       
2022-10-25 13:17:11.000000000 +0200
+++ new/pytest-datadir-1.5.0/src/pytest_datadir.egg-info/PKG-INFO       
2023-10-02 20:16:31.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pytest-datadir
-Version: 1.4.1
+Version: 1.5.0
 Summary: pytest plugin for test data directories and files
 Home-page: http://github.com/gabrielcnr/pytest-datadir
 Author: Gabriel Reis
@@ -11,17 +11,18 @@
 Classifier: Intended Audience :: Developers
 Classifier: License :: OSI Approved :: MIT License
 Classifier: Operating System :: OS Independent
-Classifier: Programming Language :: Python :: 3.6
-Classifier: Programming Language :: Python :: 3.7
 Classifier: Programming Language :: Python :: 3.8
 Classifier: Programming Language :: Python :: 3.9
 Classifier: Programming Language :: Python :: 3.10
+Classifier: Programming Language :: Python :: 3.11
+Classifier: Programming Language :: Python :: 3.12
 Classifier: Topic :: Software Development :: Quality Assurance
 Classifier: Topic :: Software Development :: Testing
-Requires-Python: >=3.6
+Requires-Python: >=3.8
 Description-Content-Type: text/markdown
 License-File: LICENSE
 License-File: AUTHORS
+Requires-Dist: pytest>=5.0
 
 # pytest-datadir
 
@@ -64,19 +65,6 @@
 
 Both `datadir` and `shared_datadir` fixtures are `pathlib.Path` objects.
 
-# Releases
-
-Follow these steps to make a new release:
-
-1. Create a new branch `release-X.Y.Z` from `master`.
-2. Update `CHANGELOG.rst`.
-3. Open a PR.
-4. After it is **green** and **approved**, push a new tag in the format 
`X.Y.Z`.
-
-Travis will deploy to PyPI automatically.
-
-Afterwards, update the recipe in 
[conda-forge/pytest-datadir-feedstock](https://github.com/conda-forge/pytest-datadir-feedstock).
-
 # License
 
 MIT.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-datadir-1.4.1/src/pytest_datadir.egg-info/SOURCES.txt 
new/pytest-datadir-1.5.0/src/pytest_datadir.egg-info/SOURCES.txt
--- old/pytest-datadir-1.4.1/src/pytest_datadir.egg-info/SOURCES.txt    
2022-10-25 13:17:11.000000000 +0200
+++ new/pytest-datadir-1.5.0/src/pytest_datadir.egg-info/SOURCES.txt    
2023-10-02 20:16:31.000000000 +0200
@@ -5,9 +5,11 @@
 CHANGELOG.rst
 LICENSE
 README.md
+RELEASING.rst
 setup.py
 tox.ini
-.github/workflows/main.yml
+.github/workflows/deploy.yml
+.github/workflows/test.yml
 src/pytest_datadir/__init__.py
 src/pytest_datadir/_version.py
 src/pytest_datadir/plugin.py
@@ -19,6 +21,7 @@
 src/pytest_datadir.egg-info/top_level.txt
 tests/test_hello.py
 tests/test_nonexistent.py
+tests/test_pathlib.py
 tests/data/over.txt
 tests/data/spam.txt
 tests/data/shared_directory/file.txt
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/tests/test_pathlib.py 
new/pytest-datadir-1.5.0/tests/test_pathlib.py
--- old/pytest-datadir-1.4.1/tests/test_pathlib.py      1970-01-01 
01:00:00.000000000 +0100
+++ new/pytest-datadir-1.5.0/tests/test_pathlib.py      2023-10-02 
20:16:06.000000000 +0200
@@ -0,0 +1,20 @@
+import sys
+
+import pytest
+from pytest_datadir.plugin import _win32_longpath
+
+
+def test_win32_longpath_idempotent(datadir):
+    """Double application should not prepend twice."""
+    first = _win32_longpath(str(datadir))
+    second = _win32_longpath(first)
+    assert first == second
+
+
+@pytest.mark.skipif(
+    not sys.platform.startswith("win"), reason="Only makes sense on Windows"
+)
+def test_win32_longpath_unc(datadir):
+    unc_path = r"\\ComputerName\SharedFolder\Resource"
+    longpath = _win32_longpath(unc_path)
+    assert longpath.startswith("\\\\?\\UNC\\")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-datadir-1.4.1/tox.ini 
new/pytest-datadir-1.5.0/tox.ini
--- old/pytest-datadir-1.4.1/tox.ini    2022-10-25 13:17:00.000000000 +0200
+++ new/pytest-datadir-1.5.0/tox.ini    2023-10-02 20:16:06.000000000 +0200
@@ -1,6 +1,6 @@
 [tox]
-envlist = py{36,37,38,39,310}
+envlist = py{38,39,310,311,312}
 
 [testenv]
 commands=
-    pytest {posargs:tests}
+    pytest --color=yes {posargs:tests}

Reply via email to