Accepting request 713089 from home:mcepl:branches:devel:languages:python
- Upgrade to 0.3.12: * Refactor classes to functions * Ignore Selenium * Move to pytest * Conditionally patch time.clock (removed in 3.8) * Patch time.time_ns added in Python 3.7 OBS-URL: https://build.opensuse.org/request/show/713089 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-freezegun?expand=0&rev=23
This commit is contained in:
parent
c639a55183
commit
3d3290fa2f
1139
denose.patch
1139
denose.patch
File diff suppressed because it is too large
Load Diff
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e839b43bfbe8158b4d62bb97e6313d39f3586daf48e1314fb1083d2ef17700da
|
||||
size 23382
|
3
freezegun-0.3.12.tar.gz
Normal file
3
freezegun-0.3.12.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2a4d9c8cd3c04a201e20c313caf8b6338f1cfa4cda43f46a94cc4a9fd13ea5e7
|
||||
size 24346
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 2 18:11:23 CEST 2019 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Upgrade to 0.3.12:
|
||||
* Refactor classes to functions
|
||||
* Ignore Selenium
|
||||
* Move to pytest
|
||||
* Conditionally patch time.clock (removed in 3.8)
|
||||
* Patch time.time_ns added in Python 3.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 6 08:09:38 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-freezegun
|
||||
Version: 0.3.11
|
||||
Version: 0.3.12
|
||||
Release: 0
|
||||
Summary: Mock time date for Python
|
||||
License: Apache-2.0
|
||||
@ -29,6 +29,7 @@ Source: https://files.pythonhosted.org/packages/source/f/freezegun/freez
|
||||
Patch0: remove_dependency_on_mock.patch
|
||||
# gh#spulec/freezegun#280 Removal of nose dependency
|
||||
Patch1: denose.patch
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil > 2.0}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
|
@ -1,9 +1,10 @@
|
||||
--- a/tests/test_ticking.py
|
||||
+++ b/tests/test_ticking.py
|
||||
@@ -1,6 +1,9 @@
|
||||
@@ -1,7 +1,10 @@
|
||||
import datetime
|
||||
import time
|
||||
-import mock
|
||||
import pytest
|
||||
+try:
|
||||
+ import mock
|
||||
+except ImportError:
|
||||
@ -13,12 +14,14 @@
|
||||
from tests import utils
|
||||
--- a/tests/test_utils.py
|
||||
+++ b/tests/test_utils.py
|
||||
@@ -1,4 +1,7 @@
|
||||
@@ -1,6 +1,9 @@
|
||||
from unittest import SkipTest
|
||||
|
||||
-import mock
|
||||
+try:
|
||||
+ import mock
|
||||
+except ImportError:
|
||||
+ import unittest.mock as mock
|
||||
from nose.plugins import skip
|
||||
|
||||
from freezegun import api
|
||||
from tests import utils
|
||||
|
Loading…
x
Reference in New Issue
Block a user