Add hack to clean up zephyr/lib/time.pyc -- it will break tests.

(imported from commit f649b31010adc38e3820879fcdd543e81d271d0f)
This commit is contained in:
Tim Abbott 2013-01-10 16:58:01 -05:00
parent 761b7cd5fa
commit b977bce998
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,11 @@
#!/bin/sh -e #!/bin/sh -e
mkdir -p zephyr/fixtures mkdir -p zephyr/fixtures
rm -f zephyr/tests/zephyrdb.test rm -f zephyr/tests/zephyrdb.test
# Remove time.pyc to try to prevent it from screwing people importing
# time from inside zephyr.lib. We can drop this hack after a bit.
rm -f zephyr/lib/time.pyc
python manage.py syncdb --noinput --settings=humbug.test_settings python manage.py syncdb --noinput --settings=humbug.test_settings
python manage.py migrate --settings=humbug.test_settings --all python manage.py migrate --settings=humbug.test_settings --all
# This next line can be simplified to "-n0" once we fix our app with 0 messages. # This next line can be simplified to "-n0" once we fix our app with 0 messages.