/
opt
/
alt
/
python27
/
lib64
/
python2.7
/
site-packages
/
sqlalchemy
/
testing
/
/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing
mkdir
upload
Name
Size
Mode
Actions
plugin/
-
0755
rm
suite/
-
0755
rm
assertions.py
18017
0644
edit
dl
rm
assertions.pyc
22509
0644
edit
dl
rm
assertions.pyo
20783
0644
edit
dl
rm
assertsql.py
13398
0644
edit
dl
rm
assertsql.pyc
15367
0644
edit
dl
rm
assertsql.pyo
15086
0644
edit
dl
rm
config.py
2680
0644
edit
dl
rm
config.pyc
4143
0644
edit
dl
rm
config.pyo
4057
0644
edit
dl
rm
engines.py
10437
0644
edit
dl
rm
engines.pyc
15446
0644
edit
dl
rm
engines.pyo
15277
0644
edit
dl
rm
entities.py
3203
0644
edit
dl
rm
entities.pyc
3314
0644
edit
dl
rm
entities.pyo
3314
0644
edit
dl
rm
exclusions.py
12765
0644
edit
dl
rm
exclusions.pyc
19908
0644
edit
dl
rm
exclusions.pyo
19726
0644
edit
dl
rm
fixtures.py
10814
0644
edit
dl
rm
fixtures.pyc
16586
0644
edit
dl
rm
fixtures.pyo
16502
0644
edit
dl
rm
mock.py
893
0644
edit
dl
rm
mock.pyc
780
0644
edit
dl
rm
mock.pyo
780
0644
edit
dl
rm
pickleable.py
2693
0644
edit
dl
rm
pickleable.pyc
7886
0644
edit
dl
rm
pickleable.pyo
7886
0644
edit
dl
rm
profiling.py
8513
0644
edit
dl
rm
profiling.pyc
8767
0644
edit
dl
rm
profiling.pyo
8767
0644
edit
dl
rm
provision.py
13263
0644
edit
dl
rm
provision.pyc
16866
0644
edit
dl
rm
provision.pyo
16866
0644
edit
dl
rm
replay_fixture.py
5875
0644
edit
dl
rm
replay_fixture.pyc
7665
0644
edit
dl
rm
replay_fixture.pyo
7665
0644
edit
dl
rm
requirements.py
26861
0644
edit
dl
rm
requirements.pyc
45518
0644
edit
dl
rm
requirements.pyo
45518
0644
edit
dl
rm
schema.py
3712
0644
edit
dl
rm
schema.pyc
3645
0644
edit
dl
rm
schema.pyo
3645
0644
edit
dl
rm
util.py
7738
0644
edit
dl
rm
util.pyc
11166
0644
edit
dl
rm
util.pyo
11124
0644
edit
dl
rm
warnings.py
1298
0644
edit
dl
rm
warnings.pyc
1402
0644
edit
dl
rm
warnings.pyo
1402
0644
edit
dl
rm
__init__.py
2362
0644
edit
dl
rm
__init__.pyc
2560
0644
edit
dl
rm
__init__.pyo
2560
0644
edit
dl
rm
Edit:
/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/testing/pickleable.py
(2693B)
# testing/pickleable.py # Copyright (C) 2005-2019 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Classes used in pickling tests, need to be at the module level for unpickling. """ from . import fixtures class User(fixtures.ComparableEntity): pass class Order(fixtures.ComparableEntity): pass class Dingaling(fixtures.ComparableEntity): pass class EmailUser(User): pass class Address(fixtures.ComparableEntity): pass # TODO: these are kind of arbitrary.... class Child1(fixtures.ComparableEntity): pass class Child2(fixtures.ComparableEntity): pass class Parent(fixtures.ComparableEntity): pass class Screen(object): def __init__(self, obj, parent=None): self.obj = obj self.parent = parent class Foo(object): def __init__(self, moredata): self.data = "im data" self.stuff = "im stuff" self.moredata = moredata __hash__ = object.__hash__ def __eq__(self, other): return ( other.data == self.data and other.stuff == self.stuff and other.moredata == self.moredata ) class Bar(object): def __init__(self, x, y): self.x = x self.y = y __hash__ = object.__hash__ def __eq__(self, other): return ( other.__class__ is self.__class__ and other.x == self.x and other.y == self.y ) def __str__(self): return "Bar(%d, %d)" % (self.x, self.y) class OldSchool: def __init__(self, x, y): self.x = x self.y = y def __eq__(self, other): return ( other.__class__ is self.__class__ and other.x == self.x and other.y == self.y ) class OldSchoolWithoutCompare: def __init__(self, x, y): self.x = x self.y = y class BarWithoutCompare(object): def __init__(self, x, y): self.x = x self.y = y def __str__(self): return "Bar(%d, %d)" % (self.x, self.y) class NotComparable(object): def __init__(self, data): self.data = data def __hash__(self): return id(self) def __eq__(self, other): return NotImplemented def __ne__(self, other): return NotImplemented class BrokenComparable(object): def __init__(self, data): self.data = data def __hash__(self): return id(self) def __eq__(self, other): raise NotImplementedError def __ne__(self, other): raise NotImplementedError
Save
cmd:
run