Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
python-testing.common.database
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Debian Python Team
packages
python-testing.common.database
Commits
fd36d7ff
Commit
fd36d7ff
authored
3 years ago
by
Sandro Tosi
Browse files
Options
Downloads
Patches
Plain Diff
add upstream patch to properly import Callable; Closes: #1002361 (and partially #978259)
parent
8c3d70ac
Branches
Branches containing commit
Tags
upstream/8.1.0
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
debian/changelog
+4
-1
4 additions, 1 deletion
debian/changelog
debian/patches/PR25.patch
+37
-0
37 additions, 0 deletions
debian/patches/PR25.patch
debian/patches/series
+1
-0
1 addition, 0 deletions
debian/patches/series
with
42 additions
and
1 deletion
debian/changelog
+
4
−
1
View file @
fd36d7ff
python-testing.common.database (2.0.3-1) UNRELEASED; urgency=medium
* New upstream release
* debian/patches/PR25.patch
- add upstream patch to properly import Callable; Closes: #1002361 (and
partially #978259)
-- Sandro Tosi <morph@debian.org> Sun, 19 Jun 2022 02:0
0:31
-0400
-- Sandro Tosi <morph@debian.org> Sun, 19 Jun 2022 02:0
6:27
-0400
python-testing.common.database (2.0.0-3) unstable; urgency=medium
...
...
This diff is collapsed.
Click to expand it.
debian/patches/PR25.patch
0 → 100644
+
37
−
0
View file @
fd36d7ff
From fa31191abe883d0ddc2a441550eeacc4126c85cb Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Sat, 18 Dec 2021 10:32:19 -0500
Subject: [PATCH] Support Callable in collections.abc
The abstract base classes are available here in Python 3.3+, and
in current Python versions they are no longer available directly
in collections.
---
src/testing/common/database.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/testing/common/database.py b/src/testing/common/database.py
index 5ba8c5e..74e1067 100644
--- a/src/testing/common/database.py
+++ b/src/testing/common/database.py
@@ -23,7 +23,10 @@
from time import sleep
from shutil import copytree, rmtree
from datetime import datetime
-import collections
+try:
+ from collections.abc import Callable
+except ImportError:
+ from collections import Callable
class DatabaseFactory(object):
@@ -285,7 +288,7 @@
def decorator(fn, path=arg):
return skipIf(cond, "%s not found" % self.name)(fn)
- if isinstance(arg, collections.Callable): # execute as simple decorator
+ if isinstance(arg, Callable): # execute as simple decorator
return decorator(arg, None)
else: # execute with path argument
return decorator
This diff is collapsed.
Click to expand it.
debian/patches/series
0 → 100644
+
1
−
0
View file @
fd36d7ff
PR25.patch
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment