From 67d6262f456a6b0cf0070e4b2949ff7d6f979369 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Thu, 27 Jul 2023 10:07:16 +0200 Subject: [PATCH] Skip the namespace package test correctly --- test/test_api/test_refactoring.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test_api/test_refactoring.py b/test/test_api/test_refactoring.py index d2b54ff9..6f1b9b8a 100644 --- a/test/test_api/test_refactoring.py +++ b/test/test_api/test_refactoring.py @@ -54,7 +54,8 @@ def test_rename_mod(Script, dir_with_content): ''').format(dir=dir_with_content) -def test_namespace_package(Script, tmpdir, skip_pre_python38): +@pytest.mark.skipif('sys.version_info[:2] < (3, 8)', message="Python 3.8 introduces dirs_exist_ok") +def test_namespace_package(Script, tmpdir): origin = get_example_dir('implicit_namespace_package') shutil.copytree(origin, tmpdir.strpath, dirs_exist_ok=True) sys_path = [