Commits

Anonymous committed 508d764

use 0x5c to quote a baskslash in doctest

  • Participants
  • Parent commits 04404dc

Comments (0)

Files changed (2)

File sqlserver_ado/base.py

 from django.core.exceptions import ImproperlyConfigured, ValidationError
 
 import adodbapi as Database
-import adodbapi.ado_consts as adc
+##import adodbapi.ado_consts as adc
 ## Database.adodbapi.defaultCursorLocation = adc.adUseServer # TODO: remove or sanitize this (VDC)
 
 from introspection import DatabaseIntrospection
         return False
     return True
 
-def connection_dict_from_settings():
+def connection_dict_from_settings():  # (called from external test programs)
     from django.conf import settings
     db_settings = getattr(settings, 'DATABASES', {}).get('default', None) or settings
     return make_connection_dict(db_settings)

File tests/test_main/regressiontests/models.py

     >>> choices = (
     ...     "no_slashes", "no_slashes_2",
     ...     r"C:\some_folder\somefile.ext", r"\some_folder",
-    ...     "some_folder"+'\',
+    ...     "some_folder"+'\0x5c', # 0x5c is a backslash
     ...     "[brackets]",
     ...     )
     >>> for c in choices: