Comments (6)
+1 also having this issue.
from freezegun.
+1 I have this issue as well.
from freezegun.
I ended up adding a setup sync step in my test code, where each thread does a serialized setup before being used for concurrent test code.
from freezegun.
I'm afraid I don't understand what you mean by that.
from freezegun.
You can create a wrapper function when freezing time in threads which wraps the freeze time call with a lock instead of calling freeze time directly. This force your threads to only freeze time one at a time.
from freezegun.
Related Issues (20)
- freeze_time not working, if module name starts with "git"
- freeze_time class decoration causes problems with subclasses and Python 3.11.1 HOT 1
- Feature request: allow it to accept no datetime and default to `utcnow`
- Aware Datetime Support
- Add FakeDate to stubs HOT 1
- 1.2.2: missimg git tag HOT 4
- time.localtime still uses original timezone information HOT 5
- sdist is missing tox.ini
- TypeError: unsupported operand type(s) for +: 'FakeDate' and 'relativedelta'
- 1.2.2: missing git tag HOT 2
- 'in' comparison changes between python 3.8 and 3.9
- `extend_ignore_list` should add ignore package only once HOT 1
- Issue with dateparser
- Consider adding socketserver to the default ignore list
- 1 min difference when using `auto_tick_seconds`
- Doesnt change the time for subprocess HOT 2
- datetime.utcnow() and datetime.now() return same value HOT 1
- Drop usage of utcfromtimestamp HOT 1
- utcnow is deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freezegun.