Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-compileall2 for 
openSUSE:Factory checked in at 2022-01-28 22:12:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-compileall2 (Old)
 and      /work/SRC/openSUSE:Factory/.python-compileall2.new.1898 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-compileall2"

Fri Jan 28 22:12:25 2022 rev:2 rq:949546 version:0.7.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-compileall2/python-compileall2.changes    
2020-12-22 13:35:38.686459659 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-compileall2.new.1898/python-compileall2.changes
  2022-01-28 22:12:36.670859130 +0100
@@ -1,0 +2,5 @@
+Fri Jan 28 03:55:46 UTC 2022 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Refresh test_compileall2.py for Python 3.10+ support.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-compileall2.spec ++++++
--- /var/tmp/diff_new_pack.8vP36l/_old  2022-01-28 22:12:37.134855954 +0100
+++ /var/tmp/diff_new_pack.8vP36l/_new  2022-01-28 22:12:37.138855927 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-compileall2
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -27,11 +27,11 @@
 Source:         
https://files.pythonhosted.org/packages/source/c/compileall2/compileall2-%{version}.tar.gz
 Source1:        
https://raw.githubusercontent.com/fedora-python/compileall2/master/LICENSE
 Source2:        
https://raw.githubusercontent.com/fedora-python/compileall2/master/test_compileall2.py
-BuildRequires:  python-rpm-macros
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module testsuite}
-BuildRequires:  %{python_module pytest}
 BuildRequires:  fdupes
+BuildRequires:  python-rpm-macros
 BuildArch:      noarch
 %python_subpackages
 

++++++ test_compileall2.py ++++++
--- /var/tmp/diff_new_pack.8vP36l/_old  2022-01-28 22:12:37.182855626 +0100
+++ /var/tmp/diff_new_pack.8vP36l/_new  2022-01-28 22:12:37.186855599 +0100
@@ -30,6 +30,19 @@
     # Python 3.4
     from test import script_helper
 
+try:
+    # Python < 3.10
+    from test.support import skip_unless_symlink
+    from test.support import unlink
+    from test.support import rmtree
+    from test.support import EnvironmentVarGuard
+except ImportError:
+    # Python >= 3.10
+    from test.support.os_helper import skip_unless_symlink
+    from test.support.os_helper import unlink
+    from test.support.os_helper import rmtree
+    from test.support.os_helper import EnvironmentVarGuard
+
 # Backported from subprocess/test.support module for Python <= 3.5
 def _optim_args_from_interpreter_flags():
     """Return a list of command-line arguments reproducing the current
@@ -64,7 +77,7 @@
     """Runs function with SOURCE_DATE_EPOCH unset."""
     @functools.wraps(fxn)
     def wrapper(*args, **kwargs):
-        with support.EnvironmentVarGuard() as env:
+        with EnvironmentVarGuard() as env:
             env.unset('SOURCE_DATE_EPOCH')
             return fxn(*args, **kwargs)
     return wrapper
@@ -74,7 +87,7 @@
     """Runs function with SOURCE_DATE_EPOCH set."""
     @functools.wraps(fxn)
     def wrapper(*args, **kwargs):
-        with support.EnvironmentVarGuard() as env:
+        with EnvironmentVarGuard() as env:
             env['SOURCE_DATE_EPOCH'] = '123456789'
             return fxn(*args, **kwargs)
     return wrapper
@@ -415,7 +428,7 @@
                 except Exception:
                     pass
 
-    @support.skip_unless_symlink
+    @skip_unless_symlink
     def test_ignore_symlink_destination(self):
         # Create folders for allowed files, symlinks and prohibited area
         allowed_path = os.path.join(self.directory, "test", "dir", "allowed")
@@ -745,7 +758,7 @@
                 sys_path_writable = False
                 break
             finally:
-                support.unlink(str(path))
+                unlink(str(path))
                 if directory_created:
                     directory.rmdir()
         else:
@@ -784,7 +797,7 @@
 
     def setUp(self):
         self.directory = tempfile.mkdtemp()
-        self.addCleanup(support.rmtree, self.directory)
+        self.addCleanup(rmtree, self.directory)
         self.pkgdir = os.path.join(self.directory, 'foo')
         os.mkdir(self.pkgdir)
         self.pkgdir_cachedir = os.path.join(self.pkgdir, '__pycache__')
@@ -953,7 +966,7 @@
         self.assertCompiled(spamfn)
         self.assertCompiled(eggfn)
 
-    @support.skip_unless_symlink
+    @skip_unless_symlink
     def test_symlink_loop(self):
         # Currently, compileall ignores symlinks to directories.
         # If that limitation is ever lifted, it should protect against
@@ -1155,7 +1168,7 @@
                 except Exception:
                     pass
 
-    @support.skip_unless_symlink
+    @skip_unless_symlink
     def test_ignore_symlink_destination(self):
         # Create folders for allowed files, symlinks and prohibited area
         allowed_path = os.path.join(self.directory, "test", "dir", "allowed")

Reply via email to