Skip to content

Commit 52a0f3b

Browse files
committed
Add note to runtests.sh about doctest failures
1 parent 2764931 commit 52a0f3b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

runtests.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
#!/bin/sh
2-
DATABASE_URL=postgres://jrandom@localhost/test py.test tests.py -v
2+
#DATABASE_URL=postgres://jrandom@localhost/test py.test tests.py -v
33
echo "Starting doctests."
44
python postgres/__init__.py
55
python postgres/cursors.py
66
python postgres/orm.py
7+
echo ""
8+
python --version 2>&1 | grep 'Python 3' > /dev/null && \
9+
echo "\x1b[31mYou may see errors\x1b[0m due to dict ordering not being stable."
10+
python --version 2>&1 | grep 'Python 2' > /dev/null && \
11+
echo "\x1b[31mYou're using Python 2.\x1b[0m Expect errors comparing '' and u''." && \
12+
echo "You may also see errors due to dict ordering not being stable."
13+
echo "We don't fix these because that would make docs uglier."
14+
echo ""
715
echo "Done with doctests."

0 commit comments

Comments
 (0)