Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6792735
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:00:29+00:00 2026-05-26T18:00:29+00:00

I normally run tests for specific django apps, but I was curious and decided

  • 0

I normally run tests for specific django apps, but I was curious and decided to run the entire test suite (which includes django tests) with

./manage.py test

The test suite freezes.

To find out why/where, I ran

./manage.py test -v 2

and it appears that the test stops working at

 test_date_length (django.contrib.auth.tests.tokens.TokenGeneratorTest) ... 

This behavior happens for both django 1.3 and django 1.4+ (trunk).

Would appreciate any pointers on why this is happening.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:00:29+00:00Added an answer on May 26, 2026 at 6:00 pm

    After some debugging, I discovered that this problem is a result of a Python (2.7) bug compiled by clang via MacPorts.

    A loop that is executed by Python in Django code base during the execution of the TokenGeneratorTest

    factor = 0
    while True:
        factor += 1
        if i < 36 ** factor:
            factor -= 1
            break
    

    hangs on Python 2.7 compiled by clang (via MacPorts).

    I recompiled my Python 2.7 with apple-gcc-4.2 and this while loop no longer freezes when given a large i value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We have a .NET 2.0 application which we normally run on IIS6, and used
I am using nosetests to test several scripts. But when I run nosetests it
I have a set of cucumber tests that normally run fine against our site.
I have a number of tests that run against a MySQL database which is
I normally run VS 2008 at home and LINQ is built in. At work
I've been designing a website and when testing it I normally run it by
Normally if I run the following the following command in the rhino shell, mbp001:rhino1_7R2
Normally, I run Linux in a VM, however, most of my VMs are on
I normally would create a limited rights user and run the process under that
I am trying to run an application that normally works when I install on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.