Skip to content
Browse files

Fix under py 2.7.2 and under.

  • Loading branch information...
1 parent 1123151 commit ea41ba64fd86cb1d3d5f37a3522d2fac42be02dc Jeremy Dunck committed Aug 2, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 unicodecsv/test.py
View
1 .gitignore
@@ -3,3 +3,4 @@ dist
unicodecsv.egg-info
unittest2*.egg
build
+*.pyc
View
4 unicodecsv/test.py
@@ -768,7 +768,7 @@ def test_double_write(self):
writer = csv.writer(fileobj, dialect="excel")
writer.writerow(a)
float_repr = str
- if sys.version_info >= (2, 7):
+ if sys.version_info >= (2, 7, 3):
float_repr = repr
expected = ",".join([float_repr(i) for i in a])+"\r\n"
fileobj.seek(0)
@@ -787,7 +787,7 @@ def test_float_write(self):
writer = csv.writer(fileobj, dialect="excel")
writer.writerow(a)
float_repr = str
- if sys.version_info >= (2, 7):
+ if sys.version_info >= (2, 7, 3):
float_repr = repr
expected = ",".join([float_repr(i) for i in a])+"\r\n"
fileobj.seek(0)

0 comments on commit ea41ba6

Please sign in to comment.
Something went wrong with that request. Please try again.