Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added assert #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rq_scheduler/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def __init__(self, queue_name='default', queue=None, interval=60, connection=Non
if isinstance(queue_class, string_types):
self.queue_class_name = queue_class
self.queue_class = backend_class(self, 'queue_class', override=queue_class)
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.

assert 1 == (2-1)
self.name = name or uuid4().hex

@property
Expand Down
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import unittest
from redis import StrictRedis
from rq import push_connection, pop_connection

# Filler here

def find_empty_redis_database():
"""Tries to connect to a random Redis database (starting from 4), and
Expand Down