]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
corrected a bunch of spelling typos
authorDiana Clarke <diana.joan.clarke@gmail.com>
Mon, 28 Feb 2011 18:17:46 +0000 (13:17 -0500)
committerDiana Clarke <diana.joan.clarke@gmail.com>
Mon, 28 Feb 2011 18:17:46 +0000 (13:17 -0500)
28 files changed:
lib/sqlalchemy/dialects/postgresql/base.py
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/exc.py
lib/sqlalchemy/ext/mutable.py
lib/sqlalchemy/interfaces.py
lib/sqlalchemy/orm/__init__.py
lib/sqlalchemy/orm/attributes.py
lib/sqlalchemy/orm/dependency.py
lib/sqlalchemy/orm/deprecated_interfaces.py
lib/sqlalchemy/orm/descriptor_props.py
lib/sqlalchemy/orm/events.py
lib/sqlalchemy/orm/interfaces.py
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/properties.py
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/orm/session.py
lib/sqlalchemy/orm/sync.py
lib/sqlalchemy/pool.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/util.py
lib/sqlalchemy/types.py
test/dialect/test_mysql.py
test/engine/test_transaction.py
test/orm/test_attributes.py
test/orm/test_events.py
test/orm/test_expire.py
test/orm/test_joins.py
test/orm/test_unitofwork.py

index b6a6357b5f59cf768bcbdb82226ce460a0192a3a..999d1a305e32380164475b40c0a1cd01708bd981 100644 (file)
@@ -249,7 +249,7 @@ class ARRAY(sqltypes.MutableType, sqltypes.Concatenable, sqltypes.TypeEngine):
           performance implications (default changed from ``True`` in 
           0.7.0).
 
-          .. note:: This functionality is now superceded by the
+          .. note:: This functionality is now superseded by the
              ``sqlalchemy.ext.mutable`` extension described in 
              :ref:`mutable_toplevel`.
 
index 9eb5a38ffcc4730bb3c0760dfa052be2336a0866..972b06ce8a0bb328d8c8681160a4c3f5d61d6965 100644 (file)
@@ -635,7 +635,7 @@ class ExecutionContext(object):
         raise NotImplementedError()
 
     def handle_dbapi_exception(self, e):
-        """Receive a DBAPI exception which occured upon execute, result 
+        """Receive a DBAPI exception which occurred upon execute, result 
         fetch, etc."""
 
         raise NotImplementedError()
index dd3f5a9f88efb591da7e4289725eb9f0fb9b92c4..99214dfddace9364c37dbd16380e6f95b1224012 100644 (file)
@@ -39,7 +39,7 @@ class CompileError(SQLAlchemyError):
 class IdentifierError(SQLAlchemyError):
     """Raised when a schema name is beyond the max character limit"""
 
-# Moved to orm.exc; compatability definition installed by orm import until 0.6
+# Moved to orm.exc; compatibility definition installed by orm import until 0.6
 ConcurrentModificationError = None
 
 class DisconnectionError(SQLAlchemyError):
@@ -51,7 +51,7 @@ class DisconnectionError(SQLAlchemyError):
     """
 
 
-# Moved to orm.exc; compatability definition installed by orm import until 0.6
+# Moved to orm.exc; compatibility definition installed by orm import until 0.6
 FlushError = None
 
 class TimeoutError(SQLAlchemyError):
@@ -89,11 +89,11 @@ class UnboundExecutionError(InvalidRequestError):
     """SQL was attempted without a database connection to execute it on."""
 
 
-# Moved to orm.exc; compatability definition installed by orm import until 0.6
+# Moved to orm.exc; compatibility definition installed by orm import until 0.6
 UnmappedColumnError = None
 
 class StatementError(SQLAlchemyError):
-    """An error occured during execution of a SQL statement.
+    """An error occurred during execution of a SQL statement.
     
     :class:`.StatementError` wraps the exception raised
     during execution, and features :attr:`.statement`
index 594e664fbd46cf5ee15f8f599897d16c066640cb..c3bb2b9f75ebd8f81984ec839e69908312bb17c0 100644 (file)
@@ -465,7 +465,7 @@ class Mutable(MutableBase):
         is given, and that only columns which are declared specifically with that
         type instance receive additional instrumentation.
 
-        To associate a particular mutable type with all occurences of a 
+        To associate a particular mutable type with all occurrences of a 
         particular type, use the :meth:`.Mutable.associate_with` classmethod
         of the particular :meth:`.Mutable` subclass to establish a global
         assoiation.
index 0a1eec75d032c062407b50f9450c7ab09caa6866..07e574ba5223167a3af3182f42a8a22767414f73 100644 (file)
@@ -7,7 +7,7 @@
 
 """Interfaces and abstract types.
 
-This module is **deprecated** and is superceded by the
+This module is **deprecated** and is superseded by the
 event system.
 
 """
index 2ed270cda839fe0f9ec489b5044faf85ab057dd6..4de507fa5b7607fc914cbd15b07b92c78fa10f7d 100644 (file)
@@ -886,7 +886,7 @@ def synonym(name, map_column=False, descriptor=None,
                         comparator_factory=None, doc=None):
     """Denote an attribute name as a synonym to a mapped property.
 
-    .. note:: :func:`.synonym` is superceded as of 0.7 by 
+    .. note:: :func:`.synonym` is superseded as of 0.7 by 
        the :mod:`~sqlalchemy.ext.hybrid` extension.  See 
        the documentation for hybrids at :ref:`hybrids_toplevel`.
 
@@ -928,7 +928,7 @@ def comparable_property(comparator_factory, descriptor=None):
     """Provides a method of applying a :class:`.PropComparator` 
     to any Python descriptor attribute.
 
-    .. note:: :func:`.comparable_property` is superceded as of 0.7 by 
+    .. note:: :func:`.comparable_property` is superseded as of 0.7 by 
        the :mod:`~sqlalchemy.ext.hybrid` extension.  See the example 
        at :ref:`hybrid_custom_comparators`.
        
index 74e85f0650aa12ed97ee96ffe9f16c695aedbdee..437de685c1af13ef0b29f6c685bae179e395642d 100644 (file)
@@ -971,7 +971,7 @@ def backref_listeners(attribute, key, uselist):
 
 class History(tuple):
     """A 3-tuple of added, unchanged and deleted values,
-    representing the changes which have occured on an instrumented
+    representing the changes which have occurred on an instrumented
     attribute.
 
     Each tuple member is an iterable sequence.
index 338ecfb55e54e66eade91cd26597ab761016ff29..5dddd02dda9c64862db3b9e38ef0362de2b14cfe 100644 (file)
@@ -58,7 +58,7 @@ class DependencyProcessor(object):
         """establish actions and dependencies related to a flush.
 
         These actions will operate on all relevant states in
-        the aggreagte.
+        the aggregate.
 
         """
         uow.register_preprocessor(self, True)
index 1356644690bde04bdcf2bd62ec9ff9bfc3f5234a..9ebf9a57e15ee4e3c822d88ef221d2f703d8675a 100644 (file)
@@ -423,13 +423,13 @@ class SessionExtension(object):
         transaction is ongoing."""
 
     def after_commit(self, session):
-        """Execute after a commit has occured.
+        """Execute after a commit has occurred.
 
         Note that this may not be per-flush if a longer running
         transaction is ongoing."""
 
     def after_rollback(self, session):
-        """Execute after a rollback has occured.
+        """Execute after a rollback has occurred.
 
         Note that this may not be per-flush if a longer running
         transaction is ongoing."""
@@ -454,7 +454,7 @@ class SessionExtension(object):
 
         This will be when the 'new', 'dirty', and 'deleted' lists are in
         their final state.  An actual commit() may or may not have
-        occured, depending on whether or not the flush started its own
+        occurred, depending on whether or not the flush started its own
         transaction or participated in a larger transaction. """
 
     def after_begin( self, session, transaction, connection):
index d8a4bc8cf791cfe9de8144f4fc9dc81cd73272eb..634da34f15c172c08581730abe8779e363c16af7 100644 (file)
@@ -4,7 +4,7 @@
 # This module is part of SQLAlchemy and is released under
 # the MIT License: http://www.opensource.org/licenses/mit-license.php
 
-"""Descriptor proprerties are more "auxilliary" properties
+"""Descriptor properties are more "auxiliary" properties
 that exist as configurational elements, but don't participate
 as actively in the load/persist ORM loop.
 
index de2147d368242279d5e675711a22312078db4b1d..fdbee98b3a570d62ab03a3ad639dbc5d82493846 100644 (file)
@@ -800,7 +800,7 @@ class SessionEvents(event.Events):
                 not issubclass(target.session_factory, Session):
                 raise exc.ArgumentError(
                             "Session event listen on a ScopedSession "
-                            "requries that its creation callable "
+                            "requires that its creation callable "
                             "is a Session subclass.")
             return target.session_factory
         elif isinstance(target, type):
@@ -824,13 +824,13 @@ class SessionEvents(event.Events):
         transaction is ongoing."""
 
     def after_commit(self, session):
-        """Execute after a commit has occured.
+        """Execute after a commit has occurred.
 
         Note that this may not be per-flush if a longer running
         transaction is ongoing."""
 
     def after_rollback(self, session):
-        """Execute after a rollback has occured.
+        """Execute after a rollback has occurred.
 
         Note that this may not be per-flush if a longer running
         transaction is ongoing."""
@@ -855,7 +855,7 @@ class SessionEvents(event.Events):
 
         This will be when the 'new', 'dirty', and 'deleted' lists are in
         their final state.  An actual commit() may or may not have
-        occured, depending on whether or not the flush started its own
+        occurred, depending on whether or not the flush started its own
         transaction or participated in a larger transaction. """
 
     def after_begin( self, session, transaction, connection):
index 39bc61290996bc98e3c42eace71f97ce6ee680aa..907dd4bf5f5269ed682f7a4be70c7e4140b5c5cc 100644 (file)
@@ -543,7 +543,7 @@ def _reduce_path(path):
 
     This is used to allow more open ended selection of loader strategies, i.e.
     Mapper -> prop1 -> Subclass -> prop2, where Subclass is a sub-mapper
-    of the mapper referened by Mapper.prop1.
+    of the mapper referenced by Mapper.prop1.
 
     """
     return tuple([i % 2 != 0 and 
index fae47ac058e84254a7f5a496c596931554a67265..0cc28c8e86bc09f4e226a4228f0edd4e6729d2db 100644 (file)
@@ -199,7 +199,7 @@ class Mapper(object):
         self.configured = False
 
         # prevent this mapper from being constructed
-        # while a configure_mappers() is occuring (and defer a configure_mappers()
+        # while a configure_mappers() is occurring (and defer a configure_mappers()
         # until construction succeeds)
         _COMPILE_MUTEX.acquire()
         try:
@@ -1686,7 +1686,7 @@ class Mapper(object):
                                     has_all_pks = False
                                 elif col.default is None and \
                                      col.server_default is None:
-                                     params[col.key] = value
+                                    params[col.key] = value
 
                             elif isinstance(value, sql.ClauseElement):
                                 value_params[col] = value
index 68e3196dfd36e66171e3e927c600ef873f055ee7..969905641ec1059c8a3c76f4983b8f82c4680c81 100644 (file)
@@ -709,7 +709,7 @@ class RelationshipProperty(StrategizedProperty):
                 if inheriting is not self.parent \
                     and inheriting.has_property(self.key):
                     util.warn("Warning: relationship '%s' on mapper "
-                              "'%s' supercedes the same relationship "
+                              "'%s' supersedes the same relationship "
                               "on inherited mapper '%s'; this can "
                               "cause dependency issues during flush"
                               % (self.key, self.parent, inheriting))
@@ -781,7 +781,7 @@ class RelationshipProperty(StrategizedProperty):
 
     def _sync_pairs_from_join(self, join_condition, primary):
         """Given a join condition, figure out what columns are foreign
-        and are part of a binary "equated" condition to their referecned
+        and are part of a binary "equated" condition to their referenced
         columns, and convert into a list of tuples of (primary col->foreign col).
 
         Make several attempts to determine if cols are compared using 
@@ -1173,7 +1173,7 @@ class RelationshipProperty(StrategizedProperty):
 
         # adjust the join condition for single table inheritance,
         # in the case that the join is to a subclass
-        # this is analgous to the "_adjust_for_single_table_inheritance()"
+        # this is analogous to the "_adjust_for_single_table_inheritance()"
         # method in Query.
 
         dest_mapper = of_type or self.mapper
index 6f79d7c9c6ff23de3034bdcfb22e56f1f82f7d65..53498508497155732026658d9b4b5c7de1cafadb 100644 (file)
@@ -272,7 +272,7 @@ class Query(object):
 
     @property
     def _mapper_entities(self):
-        # TODO: this is wrong, its hardcoded to "priamry entity" when
+        # TODO: this is wrong, its hardcoded to "primary entity" when
         # for the case of __all_equivs() it should not be
         # the name of this accessor is wrong too
         for ent in self._entities:
@@ -444,7 +444,7 @@ class Query(object):
         """Return the full SELECT statement represented by this :class:`.Query`, converted 
         to a scalar subquery with a label of the given name.
 
-        Analagous to :meth:`sqlalchemy.sql._SelectBaseMixin.label`.
+        Analogous to :meth:`sqlalchemy.sql._SelectBaseMixin.label`.
 
         New in 0.6.5.
 
@@ -457,7 +457,7 @@ class Query(object):
         """Return the full SELECT statement represented by this :class:`.Query`, converted 
         to a scalar subquery.
 
-        Analagous to :meth:`sqlalchemy.sql._SelectBaseMixin.as_scalar`.
+        Analogous to :meth:`sqlalchemy.sql._SelectBaseMixin.as_scalar`.
 
         New in 0.6.5.
 
@@ -856,12 +856,12 @@ class Query(object):
         self._setup_aliasizers(self._entities[l:])
 
     @util.pending_deprecation("0.7", 
-                ":meth:`.add_column` is superceded by :meth:`.add_columns`", 
+                ":meth:`.add_column` is superseded by :meth:`.add_columns`", 
                 False)
     def add_column(self, column):
         """Add a column expression to the list of result columns to be returned.
 
-        Pending deprecation: :meth:`.add_column` will be superceded by 
+        Pending deprecation: :meth:`.add_column` will be superseded by 
         :meth:`.add_columns`.
 
         """
@@ -1165,7 +1165,7 @@ class Query(object):
         A two-element form of \*props may also be passed.   In this form,
         the first element is a target class or selectable, the second
         is a string property name, class-mapped attribute, or clause
-        construct representing an "ON" clause.   This supercedes the
+        construct representing an "ON" clause.   This supersedes the
         previous "tuple" calling form - multiple join() calls should
         be used for multiple (target, onclause) pairs.
 
@@ -1235,7 +1235,7 @@ class Query(object):
 
     def outerjoin(self, *props, **kwargs):
         """Create a left outer join against this ``Query`` object's criterion
-        and apply generatively, retunring the newly resulting ``Query``.
+        and apply generatively, returning the newly resulting ``Query``.
 
         Usage is the same as the ``join()`` method.
 
@@ -2760,7 +2760,7 @@ class _ColumnEntity(_QueryEntity):
 
         # look for ORM entities represented within the
         # given expression.  Try to count only entities
-        # for columns whos FROM object is in the actual list
+        # for columns whose FROM object is in the actual list
         # of FROMs for the overall expression - this helps
         # subqueries which were built from ORM constructs from
         # leaking out their entities into the main select construct
index 74e8a766fe2b3527c6f440f7d4ec90ba494f5b8d..eb148bc7855c0916065ebc36ad9da3b4112e96a7 100644 (file)
@@ -674,7 +674,7 @@ class Session(object):
         :param close_with_result: Passed to :meth:`Engine.connect`, indicating
           the :class:`.Connection` should be considered "single use", automatically
           closing when the first result set is closed.  This flag only has 
-          an effect if this :class:`.Session` is configued with ``autocommit=True``
+          an effect if this :class:`.Session` is configured with ``autocommit=True``
           and does not already have a  transaction in progress.
 
         :param \**kw:
@@ -950,7 +950,7 @@ class Session(object):
     def expire_all(self):
         """Expires all persistent instances within this Session.
 
-        When any attributes on a persitent instance is next accessed, 
+        When any attributes on a persistent instance is next accessed, 
         a query will be issued using the
         :class:`.Session` object's current transactional context in order to
         load all expired attributes for the given instance.   Note that
@@ -1086,7 +1086,7 @@ class Session(object):
                 not mapper.allow_partial_pks or \
                 _none_set.issuperset(instance_key[1]):
                 raise exc.FlushError('Instance %s has a NULL identity '
-                        'key.  Check if this flush is occuring at an '
+                        'key.  Check if this flush is occurring at an '
                         'inappropriate time, such as during a load '
                         'operation.' % mapperutil.state_str(state))
 
index 60a8bcb9ac20577a0411035b0f0115ccfb52ceed..15d35d2a513d741b25117d6808769d20dfa93322 100644 (file)
@@ -31,7 +31,7 @@ def populate(source, source_mapper, dest, dest_mapper,
         except exc.UnmappedColumnError:
             _raise_col_to_prop(True, source_mapper, l, dest_mapper, r)
 
-        # techically the "r.primary_key" check isn't
+        # technically the "r.primary_key" check isn't
         # needed here, but we check for this condition to limit
         # how often this logic is invoked for memory/performance
         # reasons, since we only need this info for a primary key
index 7201bccf32ff2f9553ab7a2933a1c081fb62f342..327e4aa1f53e8c60f56979c0e702b9837ddc86f2 100644 (file)
@@ -117,7 +117,7 @@ class Pool(log.Identified):
           :class:`~sqlalchemy.interfaces.PoolListener`-like objects or
           dictionaries of callables that receive events when DB-API
           connections are created, checked out and checked in to the
-          pool.  This has been superceded by 
+          pool.  This has been superseded by 
           :func:`~sqlalchemy.event.listen`.
 
         """
index cd49ed1673892e9d771acc8f8c55313bf52761e2..afae611a64b136b7409f7793202ac39b28d28b5e 100644 (file)
@@ -865,7 +865,7 @@ def bindparam(key, value=None, type_=None, unique=False, required=False, callabl
           will be called at statement execution time to determine the
           ultimate value.   Used for scenarios where the actual bind
           value cannot be determined at the point at which the clause
-          construct is created, but embeded bind values are still desirable.
+          construct is created, but embedded bind values are still desirable.
 
         :param type\_:
           A ``TypeEngine`` object that will be used to pre-process the
@@ -2331,7 +2331,7 @@ class FromClause(Selectable):
         return fromclause in self._cloned_set
 
     def replace_selectable(self, old, alias):
-        """replace all occurences of FromClause 'old' with the given Alias 
+        """replace all occurrences of FromClause 'old' with the given Alias 
         object, returning a copy of this :class:`FromClause`.
 
         """
@@ -2671,7 +2671,7 @@ class Executable(_Generative):
           
           Note that the ORM makes use of its own "compiled" caches for 
           some operations, including flush operations.  The caching
-          used by the ORM internally supercedes a cache dictionary
+          used by the ORM internally supersedes a cache dictionary
           specified here.
 
         See also:
index 331f74b7cd401b75b216b64b771a0ddce27b1a2d..853ec9c5f52f1b73d17c6da382d3ee56505baba3 100644 (file)
@@ -340,7 +340,7 @@ class Annotated(object):
             # detect immutable, don't change anything
             return self
         else:
-            # update the clone with any changes that have occured
+            # update the clone with any changes that have occurred
             # to this object's __dict__.
             clone.__dict__.update(self.__dict__)
             return Annotated(clone, self._annotations)
index d25fa3070bf24fee2c87a9a4b00230c921b09d80..69776b1331524bdfc0d1d27519b304eefa1bddf6 100644 (file)
@@ -92,7 +92,7 @@ class TypeEngine(AbstractType):
         are serialized into strings are examples of "mutable" 
         column structures.
 
-        .. note:: This functionality is now superceded by the
+        .. note:: This functionality is now superseded by the
           ``sqlalchemy.ext.mutable`` extension described in 
           :ref:`mutable_toplevel`.
 
@@ -534,7 +534,7 @@ class TypeDecorator(TypeEngine):
         are serialized into strings are examples of "mutable" 
         column structures.
 
-        .. note:: This functionality is now superceded by the
+        .. note:: This functionality is now superseded by the
           ``sqlalchemy.ext.mutable`` extension described in 
           :ref:`mutable_toplevel`.
 
@@ -553,7 +553,7 @@ class MutableType(object):
     a mutable Python object type.   This functionality is used
     only by the ORM.
 
-    .. note:: :class:`.MutableType` is superceded as of SQLAlchemy 0.7
+    .. note:: :class:`.MutableType` is superseded as of SQLAlchemy 0.7
        by the ``sqlalchemy.ext.mutable`` extension described in
        :ref:`mutable_toplevel`.   This extension provides an event
        driven approach to in-place mutation detection that does not
@@ -1614,7 +1614,7 @@ class PickleType(MutableType, TypeDecorator):
           behavior. (default changed from ``True`` in 
           0.7.0).
 
-          .. note:: This functionality is now superceded by the
+          .. note:: This functionality is now superseded by the
              ``sqlalchemy.ext.mutable`` extension described in 
              :ref:`mutable_toplevel`.
 
index a805d9838fdbd7b7acb8ac0039bfd64f7bbd47ce..113f60c144e1c616021a75730f4b57a19782836e 100644 (file)
@@ -384,7 +384,7 @@ class TypesTest(TestBase, AssertsExecutionResults, AssertsCompiledSQL):
             meta.drop_all()
 
     def test_boolean(self):
-        """Test BOOL/TINYINT(1) compatability and reflection."""
+        """Test BOOL/TINYINT(1) compatibility and reflection."""
 
         meta = MetaData(testing.db)
         bool_table = Table(
index c4aec7e37a86ea4905d3676d5efeabd7617e8f67..8e4aebff9f88e34deecb9b463c6a3eace9ae6862 100644 (file)
@@ -447,7 +447,7 @@ class ExplicitAutoCommitTest(TestBase):
         eq_(conn2.execute(select([foo.c.data])).fetchall(), [('data1',
             )])
 
-        # connection supercedes statement
+        # connection supersedes statement
 
         conn1.execution_options(autocommit=False).\
             execute(select([func.insert_foo('data2'
index 7d3793abda1ab4f68c11758f5e80c16d2f56dded..cc6017fa94388decddf607f697230fba8cf3f52b 100644 (file)
@@ -1333,7 +1333,7 @@ class HistoryTest(_base.ORMTest):
 
         # setting None on uninitialized is currently not a change for an
         # object attribute (this is different than scalar attribute).  a
-        # lazyload has occured so if its None, its really None
+        # lazyload has occurred so if its None, its really None
 
         f = Foo()
         eq_(attributes.get_state_history(attributes.instance_state(f),
index 47c53628b9bf76abf401b4d25f13774aa6f2de9c..09bb224504be3aae8286d5fb8104efa753f4315a 100644 (file)
@@ -684,8 +684,8 @@ class SessionEventsTest(_RemoveListeners, _fixtures.FixtureTest):
 
 
 class MapperExtensionTest(_fixtures.FixtureTest):
-    """Superceded by MapperEventsTest - test backwards 
-    compatiblity of MapperExtension."""
+    """Superseded by MapperEventsTest - test backwards 
+    compatibility of MapperExtension."""
 
     run_inserts = None
 
index 68b254725abd3fd3770d38be862a367944c9ccde..78af5135f4cdafaaeb09819dce9b828c41d4c213 100644 (file)
@@ -105,7 +105,7 @@ class ExpireTest(_fixtures.FixtureTest):
         s.rollback()
 
         assert u in s
-        # but now its back, rollback has occured, the _remove_newly_deleted
+        # but now its back, rollback has occurred, the _remove_newly_deleted
         # is reverted
         eq_(u.name, 'chuck')
 
@@ -1130,7 +1130,7 @@ class RefreshTest(_fixtures.FixtureTest):
     @testing.fails_on('maxdb', 'FIXME: unknown')
     @testing.resolve_artifact_names
     def test_refresh2(self):
-        """test a hang condition that was occuring on expire/refresh"""
+        """test a hang condition that was occurring on expire/refresh"""
 
         s = create_session()
         mapper(Address, addresses)
index 8b41ad5de484cbbe89f75b449adf52a47532c2fd..6bb548485353f1269eff4a6ee6e0f1f89461e5f1 100644 (file)
@@ -359,7 +359,7 @@ class JoinTest(QueryTest, AssertsCompiledSQL):
         )
 
     def test_multi_tuple_form(self):
-        """test the 'tuple' form of join, now superceded by the two-element join() form.
+        """test the 'tuple' form of join, now superseded by the two-element join() form.
 
         Not deprecating this style as of yet.
 
index 0625b59c971e7373f707f810f9d6b3cfc2019beb..748db61ec09bf54ca165d8de1f83f10842642723 100644 (file)
@@ -1967,7 +1967,7 @@ class DontAllowFlushOnLoadingObjectTest(_base.MappedTest):
             @reconstructor
             def go(self):
                 # blow away 'id', no change event.
-                # this simulates a callable occuring
+                # this simulates a callable occurring
                 # before 'id' was even populated, i.e. a callable
                 # within an attribute_mapped_collection
                 self.__dict__.pop('id', None)
@@ -1999,7 +1999,7 @@ class DontAllowFlushOnLoadingObjectTest(_base.MappedTest):
         # and thing would right themselves.
         assert_raises_message(sa.orm.exc.FlushError,
                               'has a NULL identity key.  Check if this '
-                              'flush is occuring at an inappropriate '
+                              'flush is occurring at an inappropriate '
                               'time, such as during a load operation.',
                               sess.query(T1).first)