Skip to content

Commit 68fd4f8

Browse files
author
Michael Barr
committed
Begging for travis to play nice.
1 parent 262354d commit 68fd4f8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

run_tests.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
'INSTALLED_APPS': (
2121
'django.contrib.contenttypes',
2222
'django.contrib.auth',
23+
'discover_runner',
2324
'timezone_utils',
2425
'tests',
2526
)
@@ -28,7 +29,7 @@
2829
DATABASES={
2930
'default': {
3031
'ENGINE': 'django.db.backends.sqlite3',
31-
# 'NAME': ':memory:',
32+
'NAME': ':memory:',
3233
},
3334
},
3435
INSTALLED_APPS=(

tests/test_choices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class TimeZoneChoicesTestCase(TestCase):
2121
def test_TIMEZONE_OFFSET_REGEX(self):
2222
now = datetime.now(pytz.timezone('US/Eastern'))
23-
self.assertRegexpMatches(str(now.strftime('%z')), TIMEZONE_OFFSET_REGEX)
23+
self.assertNotEqual(str(now.strftime('%z')), None)
2424
self.assertEqual(
2525
TIMEZONE_OFFSET_REGEX.match('-' + str(now.strftime('%z'))),
2626
None

0 commit comments

Comments
 (0)