Changeset 642


Ignore:
Timestamp:
Nov 27, 2015, 7:39:21 AM (4 years ago)
Author:
cito
Message:

Skip test if German locale cannot be set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.x/module/tests/test_classic_connection.py

    r641 r642  
    942942        # if and only if the decimal point is set appropriately
    943943        # for the current lc_monetary setting
    944         query("set lc_monetary='en_US.UTF-8'")
     944        try:
     945            query("set lc_monetary='en_US.UTF-8'")
     946        except pg.ProgrammingError:
     947            self.skipTest("cannot set English money locale")
    945948        pg.set_decimal_point(None)
    946949        try:
     
    964967            pg.set_decimal_point(point)
    965968        self.assertNotEqual(r, d('34.25'))
    966         query("set lc_monetary='de_DE.UTF-8'")
     969        try:
     970            query("set lc_monetary='de_DE.UTF-8'")
     971        except pg.ProgrammingError:
     972            self.skipTest("cannot set German money locale")
    967973        pg.set_decimal_point(None)
    968974        try:
Note: See TracChangeset for help on using the changeset viewer.